To enable spell checking, set the parameters SpellCheckMaxCheckTerms
, SpellCheckIncorrectMaxDocOccs
, and UnstemmedMinDocOccs
in the [Server]
section of the configuration file before you index content. When you perform a query that includes Spellcheck=True
, IDOL Server uses these settings in the spell checking process, as shown below:
IDOL Server determines if the query is eligible for spell checking.
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.
IDOL Server determines which terms are misspelled.
IDOL Server checks how many times each query term occurs in its data index. If a term occurs fewer times than the specified SpellCheckIncorrectMaxDocOccs
, IDOL Server assumes that the term is misspelled.
IDOL Server finds correct spellings and suggests them.
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.
When you shut down IDOL Server, it creates a spelling correction file.
The spelling correction file stores the corrections that you make. You can add further corrections to the file or amend existing corrections.
|