Class DateRangeFacet
A ISearchFacet which counts how many documents fall between two
Implements
Inherited Members
Namespace: Couchbase.Search
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class DateRangeFacet : SearchFacet, ISearchFacet
Constructors
| Improve this Doc View SourceDateRangeFacet()
Declaration
public DateRangeFacet()
DateRangeFacet(String, String)
Declaration
public DateRangeFacet(string name, string field)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
String | field |
DateRangeFacet(String, String, Int32)
Declaration
public DateRangeFacet(string name, string field, int limit)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
String | field | |
Int32 | limit |
Methods
| Improve this Doc View SourceAddRange(Range<DateTime>)
Adds a Range<T> to the ISearchFacet.
Declaration
public DateRangeFacet AddRange(Range<DateTime> range)
Parameters
Type | Name | Description |
---|---|---|
Range<DateTime> | range | A Range<T> for the ISearchFacet. |
Returns
Type | Description |
---|---|
DateRangeFacet |
AddRange(DateTime, DateTime)
Declaration
public DateRangeFacet AddRange(DateTime startDate, DateTime endDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | startDate | |
DateTime | endDate |
Returns
Type | Description |
---|---|
DateRangeFacet |
AddRange(String, DateTime, DateTime)
Adds a Range<T> to the ISearchFacet.
Declaration
public DateRangeFacet AddRange(string name, DateTime startDate, DateTime endDate)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the range. |
DateTime | startDate | The start date of the range. |
DateTime | endDate | The end date of the range. |
Returns
Type | Description |
---|---|
DateRangeFacet |
AddRanges(Range<DateTime>[])
Adds a range of Range<T>'s to the ISearchFacet.
Declaration
public DateRangeFacet AddRanges(params Range<DateTime>[] ranges)
Parameters
Type | Name | Description |
---|---|---|
Range<DateTime>[] | ranges | A range of Range<T>'s to add the ISearchFacet. |
Returns
Type | Description |
---|---|
DateRangeFacet |
ToJson()
Gets the JSON representation of this object.
Declaration
public override JProperty ToJson()
Returns
Type | Description |
---|---|
JProperty | A |