The spellchecker
element is a child of the parserOptions
element. It has no child elements.
ATG Search includes two spelling checkers, which are used with natural language processing. The first is an internal module, which uses the indexed content to analyze spelling errors. The second is a third-party library called wintertree, which uses a dictionary of common terms to guide its analysis.
The internal module does not correct terms that exist in the content, including proper names and other special terms, and it only suggests corrections that exist in the content. Conversely, the third-party module does not correct terms that appear in its common term list, whether they appear in the content or not, and does suggest corrections from its common term list, even if they do not appear in the content.
By default, ATG Search uses both spelling modules to achieve spelling suggestions that reflect the content but are not hampered if the content is limited. The following option controls how these modules interact:
<spellChecker>value
</spellChecker>
The value can be any one of the following:
internal
—Use only the internal module.wintertree
—Use only the third-party spelling checker.internal-wintertree
—Use both modules (the default); prefer the internal module’s suggestions.wintertree-internal
—Use both modules, prefer the Wintertree module’s suggestions.none
—Perform no spelling correction.
Additional options allow you to control how spelling suggestions are returned:
spellMaxSuggestions
—Controls how many suggestions are made for misspelled words.<spellMaxSuggestions>4</spellMaxSuggestions>
spellSuggestionCutoff
—Controls when to stop suggestion corrections.<spellSuggestionCutoff>60</spellSuggestionCutoff>
spellSuggestionFactor
—Controls spelling suggestions for query terms that appear in the index and therefore are not considered misspelled. Normally, no spelling suggestions are returned for such terms. IfspellSuggestionFactor
is set, suggestable terms are returned if their frequency is greater than the original query term’s frequency multiplied by thespellSuggestionFactor
. Set to 0 to disable.<spellSuggestionFactor>10</spellSuggestionFactor>