• Recently, searching on any term, even gibberish, returns every page and post. With the plugin deactivated, the search results are normal. Searching through the Admin search also returns normal results. We have applied the Yoast fix just in case and have also deactivated, removed, and reinstalled the plugin with the same results.

    The page I need help with: [log in to see the link]

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

    (@msaari)

    I just had one Premium customer report of the same problem: no matter what is searched for, the same list of results comes up. We haven’t gotten anywhere with that customer yet, so I don’t know yet what’s up with this, but sounds like you have the same problem.

    Do you get the right results if you try searching while live previewing one of the default themes, ie. is this a theme problem?

    Something in your site is overriding the search query. It can be a plugin, so try to see if another plugin is conflicting: is there a plugin you can deactivate to make this problem go away?

    Thread Starter elevheath

    (@elevheath)

    It seems to be a combination of removing

    function searchfilter($query) {
    
        if ($query->is_search && !is_admin() ) {
            $query->set('post_type',array('product'));
        }
    
        return $query;
    }
    
    add_filter('pre_get_posts','searchfilter');

    from the theme functions and disabling the FacetWP – Relevanssi integration plugin. They both have to be done for the results to work properly. Any thoughts?

    Plugin Author Mikko Saari

    (@msaari)

    Interesting. It’s a good idea to remove that filter when using Relevanssi, it’s useless and can cause problems.

    I can’t tell about FacetWP – as it is, I don’t have a FacetWP license myself, so I’m not sure what exactly the Relevanssi integration is doing. I’d assume it’s necessary for FacetWP to actually use Relevanssi, but without knowing what’s going on in there, I can’t say.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Returning every page/post on search’ is closed to new replies.