Click or drag to resize

SearchDefinitionBuilderTDocumentRangeTField Method (ExpressionFuncTDocument, TField, SearchRangeTField, SearchScoreDefinitionTDocument)

Creates a search definition that queries for documents where a floating-point field is in the specified range.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public SearchDefinition<TDocument> Range<TField>(
	Expression<Func<TDocument, TField>> path,
	SearchRange<TField> range,
	SearchScoreDefinition<TDocument> score = null
)
where TField : struct, new(), IComparable<TField>

Parameters

path
Type: System.Linq.ExpressionsExpressionFuncTDocument, TField

[Missing <param name="path"/> documentation for "M:MongoDB.Driver.Search.SearchDefinitionBuilder`1.Range``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},MongoDB.Driver.Search.SearchRange{``0},MongoDB.Driver.Search.SearchScoreDefinition{`0})"]

range
Type: MongoDB.Driver.SearchSearchRangeTField

[Missing <param name="range"/> documentation for "M:MongoDB.Driver.Search.SearchDefinitionBuilder`1.Range``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},MongoDB.Driver.Search.SearchRange{``0},MongoDB.Driver.Search.SearchScoreDefinition{`0})"]

score (Optional)
Type: MongoDB.Driver.SearchSearchScoreDefinitionTDocument

[Missing <param name="score"/> documentation for "M:MongoDB.Driver.Search.SearchDefinitionBuilder`1.Range``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},MongoDB.Driver.Search.SearchRange{``0},MongoDB.Driver.Search.SearchScoreDefinition{`0})"]

Type Parameters

TField

[Missing <typeparam name="TField"/> documentation for "M:MongoDB.Driver.Search.SearchDefinitionBuilder`1.Range``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},MongoDB.Driver.Search.SearchRange{``0},MongoDB.Driver.Search.SearchScoreDefinition{`0})"]

Return Value

Type: SearchDefinitionTDocument
A fluent range interface.
See Also