Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search Logic doesn't work with Taxonomies (AND nor OR), showing all results
- This topic has 6 replies, 2 voices, and was last updated 6 years ago by
djordjevia50.
-
AuthorPosts
-
May 7, 2020 at 10:44 pm #27176
djordjevia50
ParticipantHi,
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.
May 8, 2020 at 11:37 am #27187Ernest Marcinko
KeymasterHi,
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.May 8, 2020 at 12:01 pm #27188djordjevia50
ParticipantHi 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.
May 8, 2020 at 12:19 pm #27190Ernest Marcinko
KeymasterOkay, 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.pngThis will display only results where the checkboxes match at least one items, ignoring fully empty filters.
May 8, 2020 at 12:29 pm #27191djordjevia50
ParticipantThank you very much, that’s it! 🙂
Now it works exactly what I wanted! 🙂
May 8, 2020 at 12:36 pm #27192Ernest Marcinko
KeymasterYou cannot access this content.
May 8, 2020 at 12:45 pm #27193djordjevia50
ParticipantOf course, you can close the topic, everything is resolved 🙂
I will rate it as soon as possible, don’t worry 🙂
-
AuthorPosts
- The topic ‘Search Logic doesn't work with Taxonomies (AND nor OR), showing all results’ is closed to new replies.