Class NumericRangeFacet
A ISearch
Implements
Inherited Members
Namespace: Couchbase.Search
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class NumericRangeFacet : SearchFacet, ISearchFacet
Constructors
| Edit this page View SourceNumericRangeFacet()
Declaration
public NumericRangeFacet()
NumericRangeFacet(string, string)
Declaration
public NumericRangeFacet(string name, string field)
Parameters
| Edit this page View SourceNumericRangeFacet(string, string, int)
Declaration
public NumericRangeFacet(string name, string field, int limit)
Parameters
Methods
| Edit this page View SourceAddRange(Range<float>)
Adds a numeric range to the ISearch
Declaration
public NumericRangeFacet AddRange(Range<float> range)
Parameters
Returns
Type | Description |
---|---|
Numeric |
AddRange(float, float)
Declaration
[Obsolete("Use the overload which takes a string and two floats instead.")]
public NumericRangeFacet AddRange(float start, float end)
Parameters
Returns
Type | Description |
---|---|
Numeric |
AddRange(string, float, float)
Adds a numeric range to the ISearch
Declaration
public NumericRangeFacet AddRange(string name, float start, float end)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the numeric range."/> |
float | start | The start of the numeric range."/> |
float | end | The end of the numeric range. |
Returns
Type | Description |
---|---|
Numeric |
AddRanges(params Range<float>[])
Adds a range of numeric ranges to the ISearch
Declaration
public NumericRangeFacet AddRanges(params Range<float>[] ranges)
Parameters
Type | Name | Description |
---|---|---|
Range<float>[] | ranges | A range of ISearch |
Returns
Type | Description |
---|---|
Numeric |
ToJson()
Gets the JSON representation of this object.
Declaration
public override JProperty ToJson()
Returns
Type | Description |
---|---|
JProperty | A Newtonsoft. |
Overrides
Exceptions
Type | Condition |
---|---|
Invalid |
The Name and the Field property must have a value. |