Fuzzy Search now with fuzzy misspelling corrections


By Aaron - Posted on 25 March 2010

Using the Fuzzy Search module, misspelled search keywords now highlight the correctly spelled word in the text. Usually. It is fuzzy after all.

This is currently in the dev version only.

You can set the accuracy by choosing a minimum spelling score from 0 to 100, where 100 means no misspellings are highlighted. You do not need to reindex when you change this setting.

This provides a fuzzy spelling check by trying to replace bad (misspelled) ngrams with a wildcard. It is possible to get false matches, because the module doesn't really know what is misspelled. It's not using a dictionary, and some misspellings might be a legitimate word. For example, searching for "lable" might also highlight "table" if your spelling score is low enough.

However, these kinds of matches are likely to have lower score completeness and be sorted to the bottom of your results if your search term exists in your content.

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor.
Fill in the blank