Class IntervalsMatchDescriptor
Matches the analyzed text
Inheritance
IntervalsMatchDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class IntervalsMatchDescriptor : IntervalsDescriptorBase<IntervalsMatchDescriptor, IIntervalsMatch>, IDescriptor, IIntervalsMatch, IIntervals
Methods
|
Edit this page
View Source
Analyzer(string)
Which analyzer should be used to analyze terms in the query.
By default, the search analyzer of the top-level field will be used.
Declaration
public IntervalsMatchDescriptor Analyzer(string analyzer)
Parameters
Type |
Name |
Description |
string |
analyzer |
|
Returns
|
Edit this page
View Source
MaxGaps(int?)
Specify a maximum number of gaps between the terms in the text. Terms that appear further apart than this will not
match.
If unspecified, or set to -1, then there is no width restriction on the match.
If set to 0 then the terms must appear next to each other.
Declaration
public IntervalsMatchDescriptor MaxGaps(int? maxGaps)
Parameters
Type |
Name |
Description |
int? |
maxGaps |
|
Returns
|
Edit this page
View Source
Ordered(bool?)
Whether or not the terms must appear in their specified order. Defaults to false
Declaration
public IntervalsMatchDescriptor Ordered(bool? ordered = true)
Parameters
Type |
Name |
Description |
bool? |
ordered |
|
Returns
|
Edit this page
View Source
Query(string)
Declaration
public IntervalsMatchDescriptor Query(string query)
Parameters
Type |
Name |
Description |
string |
query |
|
Returns
|
Edit this page
View Source
UseField(Field)
If specified, then match intervals from this field rather than the top-level field.
Terms will be analyzed using the search analyzer from this field.
This allows you to search across multiple fields as if they were all the same field
Declaration
public IntervalsMatchDescriptor 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.
Terms will be analyzed using the search analyzer from this field.
This allows you to search across multiple fields as if they were all the same field
Declaration
public IntervalsMatchDescriptor UseField<T>(Expression<Func<T, object>> objectPath)
Parameters
Returns
Type Parameters
Implements
Extension Methods