Example usage for Java org.apache.lucene.search.suggest.analyzing FreeTextSuggester fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_GRAMS By default we use a bigram model. |
byte | DEFAULT_SEPARATOR The default character used to join multiple tokens into a single ngram token. |
FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator) Instantiate, using the provided indexing and lookup analyzers, and specified model (2 = bigram, 3 = trigram ,etc.). | |
FreeTextSuggester(Analyzer analyzer) Instantiate, using the provided analyzer for both indexing and lookup, using bigram model by default. |