Class IntervalsPrefixDescriptor
Matches terms that start with a specified set of characters. This prefix can expand to match at most 128 terms.
If the prefix matches more than 128 terms, OpenSearch returns an error.
You can use the index-prefixes option in the field mapping to avoid this limit.
Inheritance
IntervalsPrefixDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class IntervalsPrefixDescriptor : DescriptorBase<IntervalsPrefixDescriptor, IIntervalsPrefix>, IDescriptor, IIntervalsPrefix, 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 IntervalsPrefixDescriptor Analyzer(string analyzer)
Parameters
| Type |
Name |
Description |
| string |
analyzer |
|
Returns
|
Edit this page
View Source
Prefix(string)
Beginning characters of terms you wish to find in the top-level field
Declaration
public IntervalsPrefixDescriptor Prefix(string prefix)
Parameters
| Type |
Name |
Description |
| string |
prefix |
|
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 IntervalsPrefixDescriptor 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 IntervalsPrefixDescriptor UseField<T>(Expression<Func<T, object>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods