Class TermRangeQuery
The term range query finds documents containing a string value in the specified field within the specified range.
Either min or max can be omitted, but not both.
Inheritance
TermRangeQuery
Assembly: Couchbase.NetClient.dll
Syntax
public class TermRangeQuery : SearchQueryBase, ISearchQuery
Constructors
View Source
TermRangeQuery()
Declaration
View Source
TermRangeQuery(string)
Declaration
[Obsolete("Use the overload which doesn't take any parameters.")]
public TermRangeQuery(string term)
Parameters
| Type |
Name |
Description |
| string |
term |
|
Methods
View Source
AsReadOnly()
Declaration
public TermRangeQuery.ReadOnly AsReadOnly()
Returns
View Source
Deconstruct(out string, out bool, out string, out bool, out string)
Declaration
public void Deconstruct(out string min, out bool minInclusive, out string max, out bool maxInclusive, out string field)
Parameters
View Source
Export()
Gets a JSON object representing this query instance />
Declaration
[RequiresUnreferencedCode("Couchbase FTS might require types that cannot be statically analyzed. Make sure all required types are preserved.")]
[RequiresDynamicCode("Couchbase FTS might require types that cannot be statically analyzed and might need runtime code generation. Do not use for native AOT applications.")]
public override JObject Export()
Returns
Overrides
View Source
Field(string)
Declaration
public TermRangeQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
|
Returns
View Source
Max(string, bool)
Declaration
public TermRangeQuery Max(string max, bool inclusive = false)
Parameters
Returns
View Source
Min(string, bool)
Declaration
public TermRangeQuery Min(string min, bool inclusive = true)
Parameters
Returns
Implements