Can Drupal's search module search for a substring? (Partial Search)
Asked Answered
M

4

11

Drupal's core search module, only searches for keywords, e.g. "sandwich". Can I make it search with a substring e.g. "sandw" and return my sandwich-results?

Maybe there is a plugin that does that?

Mossback answered 16/4, 2010 at 15:17 Comment(0)
Z
2

Recently I made a patch for Drupal's core search module to provide it with partial search (aka n-gram searches) ability. This is tested against Drupal 6.15 & 6.16 releases. You might want to read about patching.

On the other hand you can make use of Apache Solr Search Integration, Search Lucene API modules or other 3rd-party search solutions which takes more time to implement.

PorterStemmer module has its own different story in which you might be interested, too.

Zina answered 18/4, 2010 at 10:11 Comment(0)
N
2

The most direct module for it is probably Fuzzy Search. I have not tried it. If you have more advanced search needs on a small to medium sized site, Search Lucene API is a fine solution. For a larger site, or truly advanced needs, Solr is the premiere solution.

Norway answered 22/4, 2010 at 6:49 Comment(0)
E
1

Yes. Fuzzy Search (module) does it. https://drupal.org/project/fuzzysearch

Eaglestone answered 11/9, 2013 at 11:49 Comment(0)
C
0

Drupal Finder does it somehow, namely: it has an autosuggest feature, so if You start typich sand it should suggest You a node containing sandwich.

Cedillo answered 6/5, 2010 at 6:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.