Class IntervalsFuzzyDescriptor
The fuzzy rule matches terms that are similar to the provided term, within an edit distance defined by Fuzziness.
If the fuzzy expansion matches more than 128 terms, OpenSearch returns an error.
Inheritance
IntervalsFuzzyDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class IntervalsFuzzyDescriptor : DescriptorBase<IntervalsFuzzyDescriptor, IIntervalsFuzzy>, IDescriptor, IIntervalsFuzzy, IIntervalsNoFilter
Methods
|
Edit this page
View Source
Analyzer(string)
Analyzer used to normalize the term. Defaults to the top-level field's analyzer.
Declaration
public IntervalsFuzzyDescriptor Analyzer(string analyzer)
Parameters
Type |
Name |
Description |
string |
analyzer |
|
Returns
|
Edit this page
View Source
Fuzziness(Fuzziness)
Maximum edit distance allowed for matching. See Fuzziness for valid values and more information.
Defaults to Auto.
Declaration
public IntervalsFuzzyDescriptor Fuzziness(Fuzziness fuzziness)
Parameters
Returns
|
Edit this page
View Source
PrefixLength(int?)
Number of beginning characters left unchanged when creating expansions. Defaults to 0
.
Declaration
public IntervalsFuzzyDescriptor PrefixLength(int? prefixLength)
Parameters
Type |
Name |
Description |
int? |
prefixLength |
|
Returns
|
Edit this page
View Source
Term(string)
Declaration
public IntervalsFuzzyDescriptor Term(string term)
Parameters
Type |
Name |
Description |
string |
term |
|
Returns
|
Edit this page
View Source
Transpositions(bool?)
Indicates whether edits include transpositions of two adjacent characters (ab → ba). Defaults to true
.
Declaration
public IntervalsFuzzyDescriptor Transpositions(bool? transpositions = true)
Parameters
Type |
Name |
Description |
bool? |
transpositions |
|
Returns
|
Edit this page
View Source
UseField(Field)
If specified, then match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field,
unless analyzer is specified separately.
Declaration
public IntervalsFuzzyDescriptor UseField(Field useField)
Parameters
Type |
Name |
Description |
Field |
useField |
|
Returns
|
Edit this page
View Source
UseField<T>(Expression<Func<T, object>>)
If specified, then match intervals from this field rather than the top-level field.
The term is normalized using the search analyzer from this field,
unless analyzer is specified separately.
Declaration
public IntervalsFuzzyDescriptor UseField<T>(Expression<Func<T, object>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods