Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class NumericRangeQuery

    The numeric range query finds documents containing a numeric value in the specified field within the specified range. Either min or max can be omitted, but not both.

    Inheritance
    object
    SearchQueryBase
    NumericRangeQuery
    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 NumericRangeQuery : SearchQueryBase, ISearchQuery

    Methods

    | Edit this page View Source

    AsReadOnly()

    Declaration
    public NumericRangeQuery.ReadOnly AsReadOnly()
    Returns
    Type Description
    NumericRangeQuery.ReadOnly
    | Edit this page View Source

    Deconstruct(out double?, out bool, out double?, out bool, out string)

    Declaration
    public void Deconstruct(out double? min, out bool minInclusive, out double? max, out bool maxInclusive, out string field)
    Parameters
    Type Name Description
    double? min
    bool minInclusive
    double? 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)

    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.

    Declaration
    public NumericRangeQuery Field(string field)
    Parameters
    Type Name Description
    string field

    The field.

    Returns
    Type Description
    NumericRangeQuery
    | Edit this page View Source

    Max(double, bool)

    The higher end of the range, inclusive by default.

    Declaration
    public NumericRangeQuery Max(double max, bool inclusive = true)
    Parameters
    Type Name Description
    double max

    The maximum.

    bool inclusive

    if set to true [inclusive].

    Returns
    Type Description
    NumericRangeQuery
    | Edit this page View Source

    Min(double, bool)

    The lower end of the range, inclusive by default.

    Declaration
    public NumericRangeQuery Min(double min, bool inclusive = true)
    Parameters
    Type Name Description
    double min

    The minimum.

    bool inclusive

    if set to true [inclusive].

    Returns
    Type Description
    NumericRangeQuery

    Implements

    ISearchQuery

    See Also

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