Show / Hide Table of Contents

    Class NumericRangeFilter

    LUCENENET specific static class to provide access to static methods without referring to the NumericRangeFilter<T>'s generic closing type.

    Inheritance
    System.Object
    NumericRangeFilter
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public static class NumericRangeFilter : object

    Methods

    | Improve this Doc View Source

    NewDoubleRange(String, Int32, Nullable<Double>, Nullable<Double>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that filters a range using the given PrecisionStep. You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. will never match a half-open range, to hit NaN use a query with min == max == System.Double.NaN. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    Declaration
    public static NumericRangeFilter<double> NewDoubleRange(string field, int precisionStep, double? min, double? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Int32 precisionStep
    System.Nullable<System.Double> min
    System.Nullable<System.Double> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Double>
    | Improve this Doc View Source

    NewDoubleRange(String, Nullable<Double>, Nullable<Double>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that queries a range using the default PrecisionStep PRECISION_STEP_DEFAULT (4). You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. will never match a half-open range, to hit NaN use a query with min == max == System.Double.NaN. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    Declaration
    public static NumericRangeFilter<double> NewDoubleRange(string field, double? min, double? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Nullable<System.Double> min
    System.Nullable<System.Double> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Double>
    | Improve this Doc View Source

    NewInt32Range(String, Int32, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that filters a range using the given PrecisionStep. You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newIntRange() in Lucene

    Declaration
    public static NumericRangeFilter<int> NewInt32Range(string field, int precisionStep, int? min, int? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Int32 precisionStep
    System.Nullable<System.Int32> min
    System.Nullable<System.Int32> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Int32>
    | Improve this Doc View Source

    NewInt32Range(String, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that queries a range using the default PrecisionStep PRECISION_STEP_DEFAULT (4). You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newIntRange() in Lucene

    Declaration
    public static NumericRangeFilter<int> NewInt32Range(string field, int? min, int? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Nullable<System.Int32> min
    System.Nullable<System.Int32> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Int32>
    | Improve this Doc View Source

    NewInt64Range(String, Int32, Nullable<Int64>, Nullable<Int64>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that filters a range using the given PrecisionStep. You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newLongRange() in Lucene

    Declaration
    public static NumericRangeFilter<long> NewInt64Range(string field, int precisionStep, long? min, long? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Int32 precisionStep
    System.Nullable<System.Int64> min
    System.Nullable<System.Int64> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Int64>
    | Improve this Doc View Source

    NewInt64Range(String, Nullable<Int64>, Nullable<Int64>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that queries a range using the default PrecisionStep PRECISION_STEP_DEFAULT (4). You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newLongRange() in Lucene

    Declaration
    public static NumericRangeFilter<long> NewInt64Range(string field, long? min, long? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Nullable<System.Int64> min
    System.Nullable<System.Int64> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Int64>
    | Improve this Doc View Source

    NewSingleRange(String, Int32, Nullable<Single>, Nullable<Single>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that filters a range using the given PrecisionStep. You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. will never match a half-open range, to hit NaN use a query with min == max == System.Single.NaN. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newFloatRange() in Lucene

    Declaration
    public static NumericRangeFilter<float> NewSingleRange(string field, int precisionStep, float? min, float? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Int32 precisionStep
    System.Nullable<System.Single> min
    System.Nullable<System.Single> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Single>
    | Improve this Doc View Source

    NewSingleRange(String, Nullable<Single>, Nullable<Single>, Boolean, Boolean)

    Factory that creates a NumericRangeFilter, that queries a range using the default PrecisionStep PRECISION_STEP_DEFAULT (4). You can have half-open ranges (which are in fact </<= or >/>= queries) by setting the min or max value to null. will never match a half-open range, to hit NaN use a query with min == max == System.Single.NaN. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

    NOTE: This was newFloatRange() in Lucene

    Declaration
    public static NumericRangeFilter<float> NewSingleRange(string field, float? min, float? max, bool minInclusive, bool maxInclusive)
    Parameters
    Type Name Description
    System.String field
    System.Nullable<System.Single> min
    System.Nullable<System.Single> max
    System.Boolean minInclusive
    System.Boolean maxInclusive
    Returns
    Type Description
    NumericRangeFilter<System.Single>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)