Constructor AnalyzingSuggester
AnalyzingSuggester(Analyzer)
Declaration
public AnalyzingSuggester(Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer |
AnalyzingSuggester(Analyzer, Analyzer)
Declaration
public AnalyzingSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | |
Analyzer | queryAnalyzer |
AnalyzingSuggester(Analyzer, Analyzer, SuggesterOptions, Int32, Int32, Boolean)
Creates a new suggester.
Declaration
public AnalyzingSuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, SuggesterOptions options, int maxSurfaceFormsPerAnalyzedForm, int maxGraphExpansions, bool preservePositionIncrements)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | Analyzer that will be used for analyzing suggestions while building the index. |
Analyzer | queryAnalyzer | Analyzer that will be used for analyzing query text during lookup |
SuggesterOptions | options | see EXACT_FIRST, PRESERVE_SEP |
System.Int32 | maxSurfaceFormsPerAnalyzedForm | Maximum number of surface forms to keep for a single analyzed form. When there are too many surface forms we discard the lowest weighted ones. |
System.Int32 | maxGraphExpansions | Maximum number of graph paths to expand from the analyzed form. Set this to -1 for no limit. |
System.Boolean | preservePositionIncrements | Whether position holes should appear in the automata |