Suggest

Name

Suggest -- Display misspelled search word suggestions

search.htm

Synopsis

Suggest {yes | no}

Description

Suggest activates generating misspelled search word suggestions. Whenever a search query returns no results, search.cgi looks into the query and checks every not found word if it can be replaced by another similar word to make the query return some results.

Suggestion generator uses word statistics taking in account the word occurrences in the database and proximity between the original and the suggested word. If a suggestion is found, mnoGoSearch will display a "Did you mean: (suggested query)?" link. You can follow the link and see search results for the suggested query.

In order to start using misspelled word suggestions you need to create word statistics once, using "indexer -Ewordstat". You can also periodically recreate word statistics using "indexer -Ewordstat", especially after bulk indexing.

The suggested query is available in the search template by calling res.property("WS") , where res is the current RESULT variable.

Note: Misspelled word suggestion currently works for the languages using Latin script only, and does not work for other scripts, e.g. Arabic, Cyrillic, Hebrew, etc. Suggestions for non-Latin scripts will be added in the future releases.

The default value is no.

Examples


Suggest yes