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

The date range query finds documents containing a date value in the specified field within the specified range.
Inheritance: FtsQueryBase
Show file Open project: couchbase/couchbase-net-client Class Usage Examples

Public Methods

Method Description
End ( System.DateTime endTime, bool inclusive = false ) : DateRangeQuery

The end date of the range

Export ( ) : Newtonsoft.Json.Linq.JObject
Field ( string field ) : DateRangeQuery

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.

Parser ( string name ) : DateRangeQuery

The name of the parser to use.

Start ( System.DateTime startTime, bool inclusive = true ) : DateRangeQuery

The start date of the range.

Method Details

End() public method

The end date of the range
public End ( System.DateTime endTime, bool inclusive = false ) : DateRangeQuery
endTime System.DateTime The end time.
inclusive bool if set to true [inclusive].
return DateRangeQuery

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 ) : DateRangeQuery
field string The field.
return DateRangeQuery

Parser() public method

The name of the parser to use.
public Parser ( string name ) : DateRangeQuery
name string The name.
return DateRangeQuery

Start() public method

The start date of the range.
public Start ( System.DateTime startTime, bool inclusive = true ) : DateRangeQuery
startTime System.DateTime The start time.
inclusive bool if set to true [inclusive].
return DateRangeQuery