Class IntervalsWildcardDescriptor
Matches terms using a wildcard pattern. This pattern can expand to match at most 128 terms.
If the pattern matches more than 128 terms, OpenSearch returns an error.
Inheritance
IntervalsWildcardDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class IntervalsWildcardDescriptor : DescriptorBase<IntervalsWildcardDescriptor, IIntervalsWildcard>, IDescriptor, IIntervalsWildcard, IIntervalsNoFilter
Methods
|
Edit this page
View Source
Analyzer(string)
Analyzer used to normalize the prefix. Defaults to the top-level field's analyzer.
Declaration
public IntervalsWildcardDescriptor Analyzer(string analyzer)
Parameters
Type |
Name |
Description |
string |
analyzer |
|
Returns
|
Edit this page
View Source
Pattern(string)
Wildcard pattern used to find matching terms. Supports two wildcard operators:
?, which matches any single character
*, which can match zero or more characters, including an empty one
Warning: Avoid beginning patterns with * or ?. This can increase the iterations needed to find matching terms and slow search performance.
Declaration
public IntervalsWildcardDescriptor Pattern(string pattern)
Parameters
Type |
Name |
Description |
string |
pattern |
|
Returns
|
Edit this page
View Source
UseField(Field)
If specified, then match intervals from this field rather than the top-level field.
The prefix is normalized using the search analyzer from this field, unless a separate analyzer is specified.
Declaration
public IntervalsWildcardDescriptor 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 prefix is normalized using the search analyzer from this field, unless a separate analyzer is specified.
Declaration
public IntervalsWildcardDescriptor UseField<T>(Expression<Func<T, object>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods