spelling.suggestion_sources
Specify sources of information for generating spelling suggestions.
Key: spelling.suggestion_sources
Type: List<String>
Can be set in: collection.cfg
Description
This option defines the sources of spelling suggestions such as annotations, document titles and the corpus lexicon. The default is to use annotations, document titles and the corpus lexicon.
Sources
Sources are specified using the following character codes, as a comma separated list within square brackets.
Source | Description |
---|---|
@ | Use the .anno (annotation) file. |
% | Use unfielded words from index lex (lexicon) files. |
<metadata class> | Use words from the given metadata classes. If no fields are listed, [@,%] |
is assumed. |
Default Value
By default we use words in the annotation file, the unfielded words from the index and document title ie terms that appear in metadata class 't'.
spelling.suggestion_sources=[@,t,%]
Examples
Change to only use the corpus lexicon:
spelling.suggestion_sources=[%]
Include some custom metadata fields
spelling.suggestion_sources=[@,t,s,a]