Class SynonymMap
- java.lang.Object
-
- org.apache.lucene.analysis.synonym.SynonymMap
-
public class SynonymMap extends java.lang.Object
A map of synonyms, keys and values are phrases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SynonymMap.Builder
Builds an FSTSynonymMap.static class
SynonymMap.Parser
Abstraction for parsing synonym files.
-
Field Summary
Fields Modifier and Type Field Description FST<BytesRef>
fst
map<input word, list<ord>>int
maxHorizontalContext
maxHorizontalContext: maximum context we need on the tokenstreamstatic char
WORD_SEPARATOR
for multiword support, you must separate words with this separatorBytesRefHash
words
map<ord, outputword>
-
Constructor Summary
Constructors Constructor Description SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
-
-
-
Field Detail
-
WORD_SEPARATOR
public static final char WORD_SEPARATOR
for multiword support, you must separate words with this separator- See Also:
- Constant Field Values
-
words
public final BytesRefHash words
map<ord, outputword>
-
maxHorizontalContext
public final int maxHorizontalContext
maxHorizontalContext: maximum context we need on the tokenstream
-
-
Constructor Detail
-
SynonymMap
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
-
-