Search results too few

Forums › Forums › Search & Filter Pro › Search results too few

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #31045

    Hi, we’ve an official license of S&F pro. After using a filter, the search results are too few.

    You can see it here:
    1) go to http://preview.in-trim.carerixsite.nl/category/vacatures/
    2) click on “functiegroep -> bouw (5)”. The results should be 5
    3) note that only 1 result is displayed

    Furthermore I’ve tried it in a basic theme (like twentyfourteen), but that doesn’t matter.

    Hope to hear from you soon!

    Ross Moderator
    #31049

    Hi Ruben

    What happens when you enable Auto Count? (found in the general tab)

    Thanks

    Anonymous
    #31050

    Hi Ross,

    Thank you for your quick reply.

    Now the filter count is decreased to 1. So it matches the result count, but that’s still incorrect. There should be 5 hits. If I look it up in wp-admin the result count is correct.
    When I open a ‘missing’ post in wp-admin and hit save/apply (without further changes), it does get found by search&filter. So somehow “fresh” posts aren’t spot by S&F pro.

    I can give you a wp login if you like.

    Best Regards,
    Ruben

    Ross Moderator
    #31155

    Hey Ruben

    How are you adding these posts to your database? Via the standard WP admin screen, or via some other function?

    Thanks

    Anonymous
    #31232

    Hi Ross,

    They are imported by a another plugin automatically. Without “auto count” the correct number of posts are listed in the widget (of course not in the search results).
    I think it’s a tiny issue somewhere in the code.

    Searching & filtering in wp-admin is fine, so to me the posts it selves are OK.
    Also the free version of S&F seems to work OK.

    I hope you can help me.

    Best Regards,
    Ruben

    Ross Moderator
    #31244

    Hey Ruben

    When posts are added in a non-standard way, the Search & Filter cache is not aware there is an updated post – so it doesn’t update the cache.

    The cache is a new feature that enables a ton of extra functions that are not available in Free.

    There is a function which should help overcome this:

    do_action('search_filter_update_post_cache', 1984);

    You must add the above code for every post import – replacing the 1984 with the post ID of the post updated – or with a variable containing the post id:

    do_action('search_filter_update_post_cache', $post->ID);

    The plugin you use for importing will likely have some function, or hook made available after every insert – its at this point you should add the above code.

    Thanks

    Anonymous
    #31255

    Thanks for your help and analysis!
    I will try that.

Viewing 7 posts – 1 through 7 (of 7 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.