Spellcheck settings

From OpenSearchServer Wiki
Jump to: navigation, search

Query Spellcheck.png


This sub-tab allows for setting the spell-checking parameters for each field. The objective of the spellcheck is to offer words, taken from the possible values of the field within the current index, that resemble the requested word(s).


The number of suggestions is the maximum number of words to be suggested by the OSS engine for each requested word.


The minimal score defines how broad and fuzzy, or how narrow and strict, the suggestions can be. This score is expressed on a 0 to 1 scale. 1 does not allow from any deviation from the requested word, while 0 allows for the greatest distance between the requested word and the words that resemble it.


Note that the results in the web interface (below the "Summary" box) are arranged into two tabs, with the "Spellcheck(s)" tab being the second one.

Example - searching for words resembling the word "metal" in the content field of an index.

Minimal allowed score of 0.8 - only "meta", a word very close to metal, is considered to be a viable resembling spelling.
Minimal allowed score of 0.5 - the acceptable drift is greater, and results such as "mettle", "gunmetal", and "mesa" are 
considered to be close enough to "metal" for consideration
Minimal allowed score of 0.2 - words such as "retain" or "elementals" become acceptable

The algorithm used by the spellchecking feature is a Levenshtein edit distance computation - you can learn more about this at http://en.wikipedia.org/wiki/Levenshtein_distance .

Personal tools
Get OSS Open Search Server at SourceForge.net. Fast, secure and Free Open Source software downloads