Java org.apache.lucene.search.suggest.analyzing FreeTextSuggester fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search.suggest.analyzing FreeTextSuggester fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search.suggest.analyzing FreeTextSuggester.

The text is from its open source code.

Field

intDEFAULT_GRAMS
By default we use a bigram model.
byteDEFAULT_SEPARATOR
The default character used to join multiple tokens into a single ngram token.

Constructor

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.

Method