Class SuggestFuzzinessDescriptor<T>
Fuzziness options for a suggester
Inheritance
SuggestFuzzinessDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class SuggestFuzzinessDescriptor<T> : DescriptorBase<SuggestFuzzinessDescriptor<T>, ISuggestFuzziness>, IDescriptor, ISuggestFuzziness where T : class
Type Parameters
Methods
|
Edit this page
View Source
Fuzziness(Fuzziness)
The fuzziness factor. defaults to AUTO
Declaration
public SuggestFuzzinessDescriptor<T> Fuzziness(Fuzziness fuzziness)
Parameters
Returns
|
Edit this page
View Source
MinLength(int?)
Minimum length of the input before fuzzy suggestions are returned. Defaults to 3
Declaration
public SuggestFuzzinessDescriptor<T> MinLength(int? length)
Parameters
Type |
Name |
Description |
int? |
length |
|
Returns
|
Edit this page
View Source
PrefixLength(int?)
Minimum length of the input, which is not checked for fuzzy alternatives. Defaults to 1
Declaration
public SuggestFuzzinessDescriptor<T> PrefixLength(int? length)
Parameters
Type |
Name |
Description |
int? |
length |
|
Returns
|
Edit this page
View Source
Transpositions(bool?)
if set to true, transpositions are counted as one change instead of two. Defaults to true
Declaration
public SuggestFuzzinessDescriptor<T> Transpositions(bool? transpositions = true)
Parameters
Type |
Name |
Description |
bool? |
transpositions |
|
Returns
|
Edit this page
View Source
UnicodeAware(bool?)
If true, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code
points instead of in bytes. This is slightly slower than raw bytes, so it is set to false by default.
Declaration
public SuggestFuzzinessDescriptor<T> UnicodeAware(bool? aware = true)
Parameters
Type |
Name |
Description |
bool? |
aware |
|
Returns
Implements
Extension Methods