No results with categories and taxonomy terms

Home Forums Product Support Forums Ajax Search Pro for WordPress Support No results with categories and taxonomy terms

This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #9918
    RockoMusiQc
    RockoMusiQc
    Participant

    Hello,

    I just created a search form with categories and taxonomy terms with the help of your video. I also added tags. I see no difference when my other plugins are inactive or when I use twenty sixteen theme.

    What I want to achieve exactly:

    I want a search that will include only the posts (220 actually) that include at least one of the category and/or tags that I added (10 categories and 10 tags). The results can only be the posts that include all the categories and tags checked. Also, if I enter a word in the search field, I want that the results comes only be in these 220 posts.

    It has been simple to create but I have many problems.

    1. The main one is that whatever the category or tag I select, i have no results or the results (always the same) comes from a category that isn’t included in my categories and terms.

    2. I’m unable to get my tags unchecked by default

    To get results I unchecked all the tags at first as well then i selected only one category or one tag or one category+ tag but the results is the same.

    Stéphane

    Attachments:
    You must be logged in to view attached files.
    #9920
    RockoMusiQc
    RockoMusiQc
    Participant
    You cannot access this content.
    #9941
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9943
    RockoMusiQc
    RockoMusiQc
    Participant
    You cannot access this content.
    #9949
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I’m located in Slovakia, but I’m able to access it. It might have been a DNS server issue or something similar at my ISP. It just started to work for some magical reason.

    I will check the problem and reply as soon as possible.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9952
    RockoMusiQc
    RockoMusiQc
    Participant

    Ok great!!

    #9966
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    2. So, to uncheck the tags just use the “tick” signs next to them: https://i.imgur.com/zIK1vtN.png
    I’ve unchecked all of them for you.

    1. The issue here is that in case of tag and category (or other taxonomy term) filters are connected with an AND logic all the times. It’s a performance related thing, due to the usually large amount of tags per site.

    Therefore I’ve changed one thing on the Frontend Search settings -> Advanced panel: https://i.imgur.com/HqzomQw.png

    This way the search must match at least one of the categories and also match one of the tags at the same time – but in case of multiple categories and tags, only one of the selected is enough from each group. So the intersection of the results of the matching categories and the matching tags is the final result set.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9998
    RockoMusiQc
    RockoMusiQc
    Participant
    You cannot access this content.
    #9999
    RockoMusiQc
    RockoMusiQc
    Participant
    You cannot access this content.
    #10012
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    However I want to get results even if only one category or one tag is selected, i don’t need to have both to get results.

    It’s not possible, as I explained earlier:
    “The issue here is that in case of tag and category (or other taxonomy term) filters are connected with an AND logic all the times. It’s a performance related thing, due to the usually large amount of tags per site.”
    Plus if nothing in the filter is selected, it means logically that “none of the selection should match” – therefore no result.

    I tried “OR” to “Logic between taxonomy groups” but it doesn’t work.

    It has no effect in this case, it only works with the taxonomy term groups, not the tags and the other filters, as explained earlier.

    As soon as i select a category or a tag, the plugin start to search. Is there a way that the search start only when I have finish to select the categories and/or the tags i want?

    The plugin has no way of telling when the selection is finished. Maybe waiting a few seconds after the last seleciton would help, but it would also delay the search process. I’m not sure if it’s possible to be honest.


    I don’t understand your image https://imgur.com/HqzomQw because what i need is that the “All the selected terms shoud match” but when it’s selected, the posts are not from the categories i have in the search shortcode.

    Can you please show me an example? (which categories to select and which results should appear/or not appear) I would like to investigate this further.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.