2

I am using drupal 7 built in search module, when I searched for example mechanics it will filter out the results successfully but when I used to write only mech or mechan something like this, it displays no results.

For this I have installed Apache Solr Autocomplete and Porter-Stemmer but I unable to figure out how can I improve my search filtration.

3
  • Are you interested in Autocomplete according to existing content in the site? – user16289 Jul 28 '15 at 5:35
  • yes but is this possible if user search mech instead of mechanics then it should also shows results related to mechanics – nomeer Jul 28 '15 at 5:52
  • Good question, if there isn't a module sounds to me like you would need to construct (or pay someone to construct) a module that crawls all the site for similar words, somehow. – user16289 Jul 28 '15 at 6:12
1

Look at the module Fuzzy Search , this may solve your problem.

This module provides drupal sites with a fuzzy search engine to allow for broader keyword matches including partial or misspelled keywords.

Fuzzy matching is implemented by using ngrams. Each word in a node is split into 3 (default) letter lengths, so 'apple' gets indexed with 3 smaller strings 'app', 'ppl', 'ple'. The effect of this is that as long as your search matches X percentage (administerable in the admin settings) of the word the node will be pulled up in the results.

2
  • I have installed fuzzy search but now how can I configure it?or it automatically display results based on wild cards? – nomeer Jul 28 '15 at 9:29
  • Carefully read the instruction on page where you have downloaded this module. – WaQaR Ali Jul 28 '15 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.