• Resolved kdmehta2020

    (@kdmehta2020)


    Hello
    I have used this plugin in my website work. But the problem with search is
    1) I search for “egr” search result is ok but when i write “egr bmw” it displays more product with BMW without EGR. actually it must combine both word and than display Search accordingly and give priority to 2 word written in Search.

    Regards
    Krunal Mehta

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

Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Well, the trick here is that please use OR search logic when performing the search.
    This means that when you search for “egr bmw” plugin display products that have at least one of this search words.
    Search results ordered by relevance. Relevance depends on how many times search words presents inside products content and where are this words. So that’s why sometimes there can be situation when product that has several ‘bmw’ words are in the higher search results positions than product with just words “egr bmw”.

    But you can try to change this behavior with this little code snippet ( please clear plugin cache after adding it ):

    add_filter( 'aws_search_query_array', 'my_aws_search_query_array' );
    function my_aws_search_query_array( $query ) {
        $query['relevance'] = str_replace( '* count', '', $query['relevance'] );
        return $query;
    }

    Also, if you definitely need to show inside search results only products that has BOTH search words only I can suggest you in this case to use PRO plugin version. Its has feature to switch to AND search login.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Search Accuracy’ is closed to new replies.