Class SynonymMap

java.lang.Object
org.apache.lucene.analysis.synonym.SynonymMap

public class SynonymMap extends Object
A map of synonyms, keys and values are phrases.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • WORD_SEPARATOR

      public static final char WORD_SEPARATOR
      for multiword support, you must separate words with this separator
      See Also:
    • fst

      public final FST<BytesRef> fst
      map<input word, list<ord>>
    • words

      public final BytesRefHash words
      map<ord, outputword>
    • maxHorizontalContext

      public final int maxHorizontalContext
      maxHorizontalContext: maximum context we need on the tokenstream
  • Constructor Details