C# Class Couchbase.Search.Queries.Range.NumericRangeQuery

The numeric range query finds documents containing a numeric value in the specified field within the specified range. Either min or max can be omitted, but not both.
Inheritance: FtsQueryBase
Show file Open project: couchbase/couchbase-net-client Class Usage Examples

Public Methods

Method Description
Export ( ) : Newtonsoft.Json.Linq.JObject
Field ( string field ) : NumericRangeQuery

If a field is specified, only terms in that field will be matched. This can also affect the used analyzer if one isn't specified explicitly.

Max ( double max, bool inclusive = false ) : NumericRangeQuery

The higher end of the range, exclusive by default.

Min ( double min, bool inclusive = true ) : NumericRangeQuery

The lower end of the range, inclusive by default.

Method Details

Export() public method

public Export ( ) : Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json.Linq.JObject

Field() public method

If a field is specified, only terms in that field will be matched. This can also affect the used analyzer if one isn't specified explicitly.
public Field ( string field ) : NumericRangeQuery
field string The field.
return NumericRangeQuery

Max() public method

The higher end of the range, exclusive by default.
public Max ( double max, bool inclusive = false ) : NumericRangeQuery
max double The maximum.
inclusive bool if set to true [inclusive].
return NumericRangeQuery

Min() public method

The lower end of the range, inclusive by default.
public Min ( double min, bool inclusive = true ) : NumericRangeQuery
min double The minimum.
inclusive bool if set to true [inclusive].
return NumericRangeQuery