Method Range
Range<TField>(Expression<Func<TDocument, TField>>, SearchRange<TField>, SearchScoreDefinition<TDocument>)
Creates a search definition that queries for documents where a field is in the specified range.
public SearchDefinition<TDocument> Range<TField>(Expression<Func<TDocument, TField>> path, SearchRange<TField> range, SearchScoreDefinition<TDocument> score = null) where TField : struct, IComparable<TField>
Parameters
path
Expression<Func<TDocument, TField>>The indexed field or fields to search.
range
SearchRange<TField>The field range.
score
SearchScoreDefinition<TDocument>The score modifier.
Returns
- SearchDefinition<TDocument>
A range search definition.
Type Parameters
TField
The type of the field.
Range<TField>(SearchPathDefinition<TDocument>, SearchRange<TField>, SearchScoreDefinition<TDocument>)
Creates a search definition that queries for documents where a field is in the specified range.
public SearchDefinition<TDocument> Range<TField>(SearchPathDefinition<TDocument> path, SearchRange<TField> range, SearchScoreDefinition<TDocument> score = null) where TField : struct, IComparable<TField>
Parameters
path
SearchPathDefinition<TDocument>The indexed field or fields to search.
range
SearchRange<TField>The field range.
score
SearchScoreDefinition<TDocument>The score modifier.
Returns
- SearchDefinition<TDocument>
A range search definition.
Type Parameters
TField
The type of the field.