Class SynonymMap
java.lang.Object
org.apache.lucene.analysis.synonym.SynonymMap
A map of synonyms, keys and values are phrases.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builds an FSTSynonymMap.static class
Abstraction for parsing synonym files. -
Field Summary
FieldsModifier and TypeFieldDescriptionmap<input word, list<ord>>final int
maxHorizontalContext: maximum context we need on the tokenstreamstatic final char
for multiword support, you must separate words with this separatorfinal BytesRefHash
map<ord, outputword> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WORD_SEPARATOR
public static final char WORD_SEPARATORfor multiword support, you must separate words with this separator- See Also:
-
fst
map<input word, list<ord>> -
words
map<ord, outputword> -
maxHorizontalContext
public final int maxHorizontalContextmaxHorizontalContext: maximum context we need on the tokenstream
-
-
Constructor Details
-
SynonymMap
-