Results > Customize Results > Provide Spell Correction > How Spell Correction Works

How Spell Correction Works
To enable spell checking, set the parameters SpellCheckMaxCheckTerms, SpellCheckIncorrectMaxDocOccs and UnstemmedMinDocOccs in the configuration file [Server] section before you index content. When you execute a query that includes Spellcheck=true, IDOL server uses these settings as follows in the spell checking process:
1.
IDOL server checks how many terms the query text contains (it ignores stop words, proper-name terms and hyphenated terms). If the number does not exceed the specified SpellCheckMaxCheckTerms, the query is eligible for spell checking.
2.
IDOL server checks how many times each of the query terms occurs in its data index. If a terms occurs fewer times than the specified SpellCheckIncorrectMaxDocOccs, IDOL server assumes that the term is misspelled.
3.
IDOL server uses a proprietary term-distancing algorithm to find terms in its data index that are closest to the misspelled terms. It then checks how many times these terms occur. If a term occurs at least the specified number of UnstemmedMinDocOccs times, it uses it as a spell check suggestion.
IDOL server returns the corrected terms as a comma-separated list in an <autn:spelling> field. It also returns a corrected version of the query text in an <autn:spellingquery> field.
4.
The spelling correction file stores the corrections you make. You can add further corrections to the file or amend existing corrections.
Related Topics 
*