Constructor FreeTextSuggester
FreeTextSuggester(Analyzer)
Instantiate, using the provided analyzer for both indexing and lookup, using bigram model by default.
Declaration
public FreeTextSuggester(Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer |
FreeTextSuggester(Analyzer, Analyzer)
Instantiate, using the provided indexing and lookup analyzers, using bigram model by default.
Declaration
public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | |
Analyzer | queryAnalyzer |
FreeTextSuggester(Analyzer, Analyzer, Int32)
Instantiate, using the provided indexing and lookup analyzers, with the specified model (2 = bigram, 3 = trigram, etc.).
Declaration
public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | |
Analyzer | queryAnalyzer | |
System.Int32 | grams |
FreeTextSuggester(Analyzer, Analyzer, Int32, Byte)
Instantiate, using the provided indexing and lookup
analyzers, and specified model (2 = bigram, 3 =
trigram ,etc.). The separator
is passed to SetTokenSeparator(String)
to join multiple
tokens into a single ngram token; it must be an ascii
(7-bit-clean) byte. No input tokens should have this
byte, otherwise
Declaration
public FreeTextSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, int grams, byte separator)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | |
Analyzer | queryAnalyzer | |
System.Int32 | grams | |
System.Byte | separator |