Constructor FuzzySuggester
FuzzySuggester(Analyzer)
Creates a FuzzySuggester instance initialized with default values.
Declaration
public FuzzySuggester(Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer | The |
FuzzySuggester(Analyzer, Analyzer)
Creates a FuzzySuggester instance with an index & a query analyzer initialized with default values.
Declaration
public FuzzySuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | |
Analyzer | queryAnalyzer |
FuzzySuggester(Analyzer, Analyzer, SuggesterOptions, Int32, Int32, Boolean, Int32, Boolean, Int32, Int32, Boolean)
Creates a FuzzySuggester instance.
Declaration
public FuzzySuggester(Analyzer indexAnalyzer, Analyzer queryAnalyzer, SuggesterOptions options, int maxSurfaceFormsPerAnalyzedForm, int maxGraphExpansions, bool preservePositionIncrements, int maxEdits, bool transpositions, int nonFuzzyPrefix, int minFuzzyLength, bool unicodeAware)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | indexAnalyzer | The |
Analyzer | queryAnalyzer | The |
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 automaton |
System.Int32 | maxEdits | must be >= 0 and <= |
System.Boolean | transpositions |
|
System.Int32 | nonFuzzyPrefix | length of common (non-fuzzy) prefix (see default DEFAULT_NON_FUZZY_PREFIX |
System.Int32 | minFuzzyLength | minimum length of lookup key before any edits are allowed (see default DEFAULT_MIN_FUZZY_LENGTH) |
System.Boolean | unicodeAware | operate Unicode code points instead of bytes. |