Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ajay

    (@ajay)

    It won’t work out of the box because the algorithm tries to find “related” results as well.

    You will need a mod for this one which would need to effectively over ride the match functionality for the related search.

    Can you also try this in your theme’s functions.php

    function bsearch_no_match( $match ) {
      return ' ';
    }
    add_filter( 'bsearch_posts_match', 'bsearch_no_match' );
    add_filter( 'bsearch_posts_match_field', 'bsearch_no_match' );
    Thread Starter andrealves

    (@andrealves)

    Tried that code, it seems to return another stuff before: http://i.imgur.com/1TWxhae.png

    Like google, if we search the terms inside the quotation marks “VITAMINA C” it makes what I need.
    Not sure if it’s possible to include that marks in the query on submit?

    Thanks for the help

    Plugin Author Ajay

    (@ajay)

    Just checked your site out looking at the phrases. Could you please try turning on Boolean Mode in the Settings.

    Thread Starter andrealves

    (@andrealves)

    Turned on and using the function you provided above, it returns the same results.
    I left the Boolean Mode on.

    Thanks

    Plugin Author Ajay

    (@ajay)

    You might want to remove the function above because that bypasses any of the fulltext matching

    Thread Starter andrealves

    (@andrealves)

    I’m not using it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Specific string’ is closed to new replies.