Can anyone tell me if the standard search facility in Drupal is capable of doing partial word searches?

I'm managing a development for a customer who is using drupal for their website and the search facility does not show results if you input partial words. For example

They have the following product in the store

BV-00004
Bravilor Coffee Decanter, 1.7ltr. (12x1)
£100.12 (ex VAT)

But if you search for 'BV' or 'Bravi' you get no results.

Comments

whitingx’s picture

The Porter-Stemmer;

http://drupal.org/project/porterstemmer

or the Fuzzy Search;

http://drupal.org/project/fuzzysearch

modules may be worth looking at.

Hope this helps.

rjperry25’s picture

thanks for your help, port stemmer works a treat.

LinL’s picture

The only way I've found to do this is using exposed filters in views.

For example, set up a filter of the product name field with an operator of "Contains" and then expose the filter.

I'm using D5, don't know if it is the same for D6.

svihel’s picture

Heh I have been searching for this for some time and in the end I found this really simple and elegant solution I would never thought about :]

Thanks for posting this! And it does work in D6.
BTW there also could be used module apachesolr, which could be even better, but will be limited on certain hosters.

rooby’s picture

For a drupal 7 version of this see - #498752-19: Partial word search for Drupal 7
And for support for the search filter and argument in views also see #1480594-5: Filter Search Terms partial matching