Forums Forums Search & Filter Pro Relevanssi ignoring meta filters

Tagged: ,

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #17791

    Hey, i have found some more issues concering the Relevanssi integration (i will open separate threads for each ones, hope that’s okay?):

    With Relevanssi enabled and the search form set to use it the meta filters are not working. They are either ignored when using checkboxes or the results containing meta disappear when using sorting by said meta.
    I do think this is because Relevanssi doesn’t support filtering or ordering by meta values as stated here: http://www.relevanssi.com/knowledge-base/sorting-search-results/#comment-986253876
    The plugin author advises to take a look at the relevanssi_hits_filter.

    Best,
    Robin

    Ross Moderator
    #17799

    Hey Robin

    Did you enable the Relevanssi option in the “advanced” tab?

    Thanks

    Anonymous
    #17800

    Hey Ross,

    Yes it is enabled in this case – believe me I tried every possible combination of settings so far 🙂
    Can you confirm meta filters are supposed to be working with Relevannsi?

    Anonymous
    #17801

    Filtering by categories works absolutely fine, as well as sorting by Title or Date. But as soon as meta fields get involved in the sorting or filtering nothing happens.

    Ross Moderator
    #17802

    They absolutely work when this setting is enabled – all Relevanssi does is add some more powerful options to the actual search box.

    The only thing I think could be an issue is that Relevanssi doesn’t really support multiple search forms – so some of the settings in Relevanssi, that you have configured with your other search might conflict with S&F.

    I’m also pretty positive that “unticking” the Relevanssi box in advanced tab will just result in default WP search applied to the search box.

    Which method are you using to display your results (archive or shortcode)?

    Thanks

    Anonymous
    #17809

    I am using the shortcode. The thing is, even when unticking the Relevanssi box from the advanced tab, i get zero results. Now this where things get weird: with Ajax enabled it does actually work mostly (excpet when accessing the search later from the bookmark friendly URL). It only works flawlessy with the Relevanssi plugin deactivated in wordpress.

    Anonymous
    #17810

    Perhaps these

    remove_filter('the_posts', 'relevanssi_query');
    remove_filter('posts_request', 'relevanssi_prevent_default_request' );

    fire at a wrong point with Ajax disabled? (line 105 in class-search-filter-setup-query.php)

    Anonymous
    #17815

    One more thing. The meta filters work fine before doing a search (with Relevannsi enabled). They only fail when search results are being displayed.

    Anonymous
    #17822
    This reply has been marked as private.
    Ross Moderator
    #18064

    Hey Robin

    Thanks so much for all this detailed info – it seems like all the tickets are directly related.

    Its strange, I’ve used both Relevanssi & S&F in a number of setups – which is the initial reason for the integration and not observed these behaviours – maybe something has changed in a recent version..!

    Anyway, I hope its a quick fix, I’m only dedicating resource to small bug fixes at the moment until S&F 2.0 is ready (next couple of weeks).

    Thanks

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