Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int64Range

    Represents a range over long values.

    NOTE: This was LongRange in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Range
    Int64Range
    Inherited Members
    Range.Label
    Range.GetFilter(ValueSource)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Facet.Range
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public sealed class Int64Range : Range

    Constructors

    Int64Range(string, long, bool, long, bool)

    Create a Int64Range.

    Declaration
    public Int64Range(string label, long minIn, bool minInclusive, long maxIn, bool maxInclusive)
    Parameters
    Type Name Description
    string label
    long minIn
    bool minInclusive
    long maxIn
    bool maxInclusive

    Properties

    Max

    Maximum.

    Declaration
    public long Max { get; }
    Property Value
    Type Description
    long

    MaxInclusive

    True if the maximum value is inclusive.

    Declaration
    public bool MaxInclusive { get; }
    Property Value
    Type Description
    bool

    Min

    Minimum.

    Declaration
    public long Min { get; }
    Property Value
    Type Description
    long

    MinInclusive

    True if the minimum value is inclusive.

    Declaration
    public bool MinInclusive { get; }
    Property Value
    Type Description
    bool

    Methods

    Accept(long)

    True if this range accepts the provided value.

    Declaration
    public bool Accept(long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    bool

    GetFilter(Filter, ValueSource)

    Returns a new Lucene.Net.Search.Filter accepting only documents in this range. This filter is not general-purpose; you should either use it with DrillSideways by adding it to Add(string, Filter), or pass it to Lucene.Net.Search.FilteredQuery using its Lucene.Net.Search.FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. If the Lucene.Net.Queries.Function.ValueSource is static, e.g. an indexed numeric field, then it may be more efficient to use Lucene.Net.Search.NumericRangeFilter. The provided fastMatchFilter, if non-null, will first be consulted, and only if that is set for each document will the range then be checked.

    Declaration
    public override Filter GetFilter(Filter fastMatchFilter, ValueSource valueSource)
    Parameters
    Type Name Description
    Filter fastMatchFilter
    ValueSource valueSource
    Returns
    Type Description
    Filter
    Overrides
    Range.GetFilter(Filter, ValueSource)

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.