Method Number
Number(string, SearchPathDefinition<TDocument>, IEnumerable<BsonValue>, string)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
public SearchFacet<TDocument> Number(string name, SearchPathDefinition<TDocument> path, IEnumerable<BsonValue> boundaries, string @default = null)
Parameters
namestringThe name of the facet.
pathSearchPathDefinition<TDocument>The field path to facet on.
boundariesIEnumerable<BsonValue>A list of numeric values that specify the boundaries for each bucket.
defaultstringThe name of an additional bucket that counts documents returned from the operator that do not fall within the specified boundaries.
Returns
- SearchFacet<TDocument>
A number search facet.
Number(string, SearchPathDefinition<TDocument>, params BsonValue[])
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
public SearchFacet<TDocument> Number(string name, SearchPathDefinition<TDocument> path, params BsonValue[] boundaries)
Parameters
namestringThe name of the facet.
pathSearchPathDefinition<TDocument>The field path to facet on.
boundariesBsonValue[]A list of numeric values that specify the boundaries for each bucket.
Returns
- SearchFacet<TDocument>
A number search facet.
Number<TField>(string, Expression<Func<TDocument, TField>>, IEnumerable<BsonValue>, string)
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
public SearchFacet<TDocument> Number<TField>(string name, Expression<Func<TDocument, TField>> path, IEnumerable<BsonValue> boundaries, string @default = null)
Parameters
namestringThe name of the facet.
pathExpression<Func<TDocument, TField>>The field path to facet on.
boundariesIEnumerable<BsonValue>A list of numeric values that specify the boundaries for each bucket.
defaultstringThe name of an additional bucket that counts documents returned from the operator that do not fall within the specified boundaries.
Returns
- SearchFacet<TDocument>
A number search facet.
Type Parameters
TFieldThe type of the field.
Number<TField>(string, Expression<Func<TDocument, TField>>, params BsonValue[])
Creates a facet that determines the frequency of numeric values by breaking the search results into separate ranges of numbers.
public SearchFacet<TDocument> Number<TField>(string name, Expression<Func<TDocument, TField>> path, params BsonValue[] boundaries)
Parameters
namestringThe name of the facet.
pathExpression<Func<TDocument, TField>>The field path to facet on.
boundariesBsonValue[]A list of numeric values that specify the boundaries for each bucket.
Returns
- SearchFacet<TDocument>
A number search facet.
Type Parameters
TFieldThe type of the field.