This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search Logic doesn't work with Taxonomies (AND nor OR), showing all results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search Logic doesn't work with Taxonomies (AND nor OR), showing all results

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27176
    djordjevia50djordjevia50
    Participant

    Hi,

    I bought Ajax Search Pro in order to use it for filtering Posts on my site.

    Range that filters should be applied to are custom taxonomies – Pets, Districts and Services.

    I am using Checkboxes for each item in Taxonomy groups (three groups of checkboxes – list of all pets, list of all districts and list of all services).

    Main goal is to get in search <div> those Posts that have all selected Taxonomies in it. For this purpose, I set:
    Frontend Search Settings->Advanced-> Taxonomy terms checkbox/multiselect connection logic “AND”
    Frontend Search Settings->Advanced-> Logic between taxonomy groups “AND (default)”

    General Options->Logic&Behaviour-> Primary keyword logic “AND”
    General Options->Logic&Behaviour-> Secondary logic “Disabled”
    General Options->Logic&Behaviour-> Show exact matches only? “Off”.

    All of the settings are in Attachments.

    #27187
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details, it helps a lot.

    I assume you want to match at least one checkbox from each taxonomy group in order for a result to match. For that, I would suggest trying this option: https://i.imgur.com/ZS1qqbV.png
    That will force the plugin to check all checkboxes agains all matches.

    #27188
    djordjevia50djordjevia50
    Participant

    Hi Ernest,

    Thank you for your answer, but unfortunately that didn’t help.

    That is not the scenario I want.

    To be exact, I will send the screenshot, but since it is private, I will explain it here also for others:
    I have three groups of Taxonomy checkboxes that lists all of: Districts, Pets and Services.
    I want to achieve that when I check only one District (e.g. London), and check one Pet (e.g. Dog), and check one Service (e.g. Shop) result should be only a list of Posts that have Belgrade, Dog and Shop selected from each Taxonomy (Districts, Pets and Services, respectively) in Post settings.

    Discribed scenario doesn’t work, because it shows almost every post that I have, even those that contain unchecked Districts, Pets and Services.

    Hope this is appropriate amount of details, you also have login parameters if you want to check yourself, everything is on the homepage if you need to try.

    #27190
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Okay, I think I get it now 🙂

    I logged in, and found a few configuration issues:
    – Make sure that no taxonomy terms are selected here: https://i.imgur.com/6LSUxpj.png
    Because you want only the posts related to taxonomy terms as results, but not the taxonomy terms.
    – For the filters, use this configuration: https://i.imgur.com/RLSBmsi.png

    This will display only results where the checkboxes match at least one items, ignoring fully empty filters.

    #27191
    djordjevia50djordjevia50
    Participant

    Thank you very much, that’s it! 🙂

    Now it works exactly what I wanted! 🙂

    #27192
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #27193
    djordjevia50djordjevia50
    Participant

    Of course, you can close the topic, everything is resolved 🙂

    I will rate it as soon as possible, don’t worry 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Search Logic doesn't work with Taxonomies (AND nor OR), showing all results’ is closed to new replies.