spelling.suggestion_threshold
Background
This option specifies a frequency threshold when considering whether words should be added to the spelling suggestion index. The range is 1 to 100 with a default of 1. Increasing this value reduces overhead but may reduce the quality of spelling suggestions.
Setting the key
Set this configuration key in the search package or data source configuration.
Use the configuration key editor to add or edit the spelling.suggestion_threshold
key, and set the value. This can be set to any valid Integer
value.
Default value
The default setting is 1, which specifies that any word that appears at least once in the lexicon (list of words from indexed documents) should be included in the spelling index:
spelling.suggestion_threshold=1
The threshold value is also used when deciding whether annotations (anchortext, clicks etc.) should be included in the spelling index based on their weight.
Examples
If you believe that the spelling index is too large or is increasing query response time you may decide to change the setting to 5:
spelling.suggestion_threshold=5
This will mean that only words that occur at least 5 times in the lexicon will be included in the spelling index.
Notes
When altering the spelling suggestion threshold, you may also wish to adjust the spelling_fullmatch_trigger_const
setting which controls the maximum number of full matches for a result set beyond which spelling suggestions
will not be given. See
query processor options
for more information.