|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.synonym.SynonymMap
public class SynonymMap
A map of synonyms, keys and values are phrases.
Nested Class Summary | |
---|---|
static class |
SynonymMap.Builder
Builds an FSTSynonymMap. |
Field Summary | |
---|---|
FST<BytesRef> |
fst
map> |
int |
maxHorizontalContext
maxHorizontalContext: maximum context we need on the tokenstream |
static char |
WORD_SEPARATOR
for multiword support, you must separate words with this separator |
BytesRefHash |
words
map |
Constructor Summary | |
---|---|
SynonymMap(FST<BytesRef> fst,
BytesRefHash words,
int maxHorizontalContext)
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char WORD_SEPARATOR
public final FST<BytesRef> fst
public final BytesRefHash words
public final int maxHorizontalContext
Constructor Detail |
---|
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |