SearchFacetBuilderTDocumentNumber Method (String, SearchPathDefinitionTDocument, 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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public SearchFacet<TDocument> Number(
string name,
SearchPathDefinition<TDocument> path,
params BsonValue[] boundaries
)
Public Function Number (
name As String,
path As SearchPathDefinition(Of TDocument),
ParamArray boundaries As BsonValue()
) As SearchFacet(Of TDocument)
member Number :
name : string *
path : SearchPathDefinition<'TDocument> *
boundaries : BsonValue[] -> SearchFacet<'TDocument>
Parameters
- name
- Type: SystemString
The name of the facet. - path
- Type: MongoDB.Driver.SearchSearchPathDefinitionTDocument
The field path to facet on. - boundaries
- Type: MongoDB.BsonBsonValue
A list of numeric values that specify the boundaries for each bucket.
Return Value
Type:
SearchFacetTDocumentA number search facet.
See Also