• Resolved annettepixie

    (@annettepixie)


    I’m using this plugin (and the non ajax version on a search page).

    I’ve noticed an odd result with no results found on the ajax version despite them getting returned on the non ajax search page. I’ve only picked this up on one search term so far. I’ve looked at the server response times to see if its a timeout issue but they are the same as those for terms that work – about 400ms to 450ms.
    update:
    Issues with another search term so its not just one

    • This topic was modified 2 years, 4 months ago by annettepixie.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mikko Saari

    (@msaari)

    I need more details to be able to say anything here. Which terms are these? Can I see your site?

    Thread Starter annettepixie

    (@annettepixie)

    Thanks for your response Mikko. Unfortuantely, the site is in maintenance mode at the moment. The terms were just people names, no accents or anything odd. I did log the $args just after do_action( 'relevanssi_live_search_alter_results', $args ); in class-relevanssi-live-search-client.php – to compare args for a term that were returning results against one that wasn’t. Both were the same except for the search term.

    Having said that, I switched the query mode to new WP_Query() and now all is well – the results are being shown.

    Plugin Author Mikko Saari

    (@msaari)

    Good, that’s a more reliable way to do the searching in any case.

    jatzibui

    (@jatzibui)

    Could you please explain how to fix this in more detail as I am having the exact same problem, thank you.

    Relevanssi Live Ajax Search is not giving any results but when I hit enter there are multiple results in the result page. SearchWP Live Ajax Search plugin does show all those same results when Relevanssi Live Ajax Search shows none.

    Plugin Author Mikko Saari

    (@msaari)

    Please start a new thread instead of replying to a four-month-old resolved thread.

    I don’t know what your problem is. As you can see from the thread, Annettepixie resolved the problem, but I don’t even know what the actual problem was. Please provide more information. Which theme are you using?

    To try the other query mode, add this to your theme functions.php:

    add_filter( 'relevanssi_live_search_mode', function() { return 'wp_query'; } );

    If this doesn’t help, please start a new thread with more information.

    Thank you for your reply. That resolved the matter.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No ajax results but some results on non ajax version for the same term’ is closed to new replies.