• Resolved codings

    (@codings)


    Currently using the free version and after trying many other search plugins that are always recommended on the Lists of Best Search Plugins, Relevanssi so far is the best for the site’s needs.

    Except one issue that the other plugins don’t have: on the search results page, the theme has an AJAX powered load more button to show more results. With Relevanssi, that process hangs and does not load more. Sometimes it will eventually load more after several minutes. All of the other non-search related load more instances on the site are working as they should.

    Is there anything in Relevanssi that can cause a conflict with a theme’s current load more implementation? Any AJAX conflicts that should be looked into?

    PHP 8.1, Lightspeed enabled server with Lightspeed cache plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    It depends on what the load more button does. It may run a search query that Relevanssi stops because Relevanssi prevents the default search from running to avoid unnecessary queries. The best fix would be to ensure that the load more runs a Relevanssi query. If the theme is well done, there’s a filter hook you can use to adjust this, but it’s also possible the load more button is hard-coded in a way that makes it hard to fix.

    You can also stop Relevanssi from interfering, but in that case you’ll get a search where the first results are from Relevanssi and the rest after the load more are from the default WP search – not ideal.

    Thread Starter codings

    (@codings)

    Thank you for the detailed reply and for this plugin.

    When the AJAX issue was occurring, I was testing different things and didn’t realize the code was still active. So, it turns out that creating a post type breakdown for search results code (I was trying to separate products from the blog posts) didn’t agree with how the theme delivers results. Your reply wasn’t a waste because it led me further into your documentation.

    It’s extra work and your documentation is already better than the majority of plugins, but if you can add screenshots to some pages it might help people understand what to expect from the snippets.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.