Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    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
    object
    SearchQueryBase
    TermRangeQuery
    Implements
    ISearchQuery
    Inherited Members
    SearchQueryBase.IndexName
    SearchQueryBase.Query
    SearchQueryBase.Boost(double)
    SearchQueryBase.BoostValue
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Search.Queries.Range
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class TermRangeQuery : SearchQueryBase, ISearchQuery

    Constructors

    | Edit this page View Source

    TermRangeQuery()

    Declaration
    public TermRangeQuery()
    | Edit this page 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

    | Edit this page View Source

    AsReadOnly()

    Declaration
    public TermRangeQuery.ReadOnly AsReadOnly()
    Returns
    Type Description
    TermRangeQuery.ReadOnly
    | Edit this page 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
    Type Name Description
    string min
    bool minInclusive
    string max
    bool maxInclusive
    string field
    | Edit this page View Source

    Export()

    Gets a JSON object representing this query instance />

    Declaration
    public override JObject Export()
    Returns
    Type Description
    JObject
    Overrides
    SearchQueryBase.Export()
    | Edit this page View Source

    Field(string)

    Declaration
    public TermRangeQuery Field(string field)
    Parameters
    Type Name Description
    string field
    Returns
    Type Description
    TermRangeQuery
    | Edit this page View Source

    Max(string, bool)

    Declaration
    public TermRangeQuery Max(string max, bool inclusive = false)
    Parameters
    Type Name Description
    string max
    bool inclusive
    Returns
    Type Description
    TermRangeQuery
    | Edit this page View Source

    Min(string, bool)

    Declaration
    public TermRangeQuery Min(string min, bool inclusive = true)
    Parameters
    Type Name Description
    string min
    bool inclusive
    Returns
    Type Description
    TermRangeQuery

    Implements

    ISearchQuery
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.