Click or drag to resize

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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public SearchFacet<TDocument> Number(
	string name,
	SearchPathDefinition<TDocument> path,
	params BsonValue[] boundaries
)

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: SearchFacetTDocument
A number search facet.
See Also