SearchFacetBuilderTDocumentNumberTField Method (String, ExpressionFuncTDocument, TField, BsonValue) |
Creates a facet that determines the frequency of numeric values by breaking the search
results into separate ranges of numbers.
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public SearchFacet<TDocument> Number<TField>(
string name,
Expression<Func<TDocument, TField>> path,
params BsonValue[] boundaries
)
Public Function Number(Of TField) (
name As String,
path As Expression(Of Func(Of TDocument, TField)),
ParamArray boundaries As BsonValue()
) As SearchFacet(Of TDocument)
member Number :
name : string *
path : Expression<Func<'TDocument, 'TField>> *
boundaries : BsonValue[] -> SearchFacet<'TDocument>
Parameters
- name
- Type: SystemString
The name of the facet. - path
- Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The field path to facet on. - boundaries
- Type: MongoDB.BsonBsonValue
A list of numeric values that specify the boundaries for each bucket.
Type Parameters
- TField
- The type of the field.
Return Value
Type:
SearchFacetTDocumentA number search facet.
See Also