Show / Hide Table of Contents

    Class Range

    Base class for a single labeled range.

    @lucene.experimental

    Inheritance
    System.Object
    Range
    DoubleRange
    Int64Range
    Namespace: Lucene.Net.Facet.Range
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public abstract class Range : object

    Constructors

    | Improve this Doc View Source

    Range(String)

    Sole constructor.

    Declaration
    protected Range(string label)
    Parameters
    Type Name Description
    System.String label

    Properties

    | Improve this Doc View Source

    Label

    Label that identifies this range.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    FailNoMatch()

    Invoke this for a useless range.

    Declaration
    protected virtual void FailNoMatch()
    | Improve this Doc View Source

    GetFilter(ValueSource)

    Returns a new 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, Search.Filter), or pass it to using its . If the ValueSource is static, e.g. an indexed numeric field, then it may be more efficient to use .

    Declaration
    public virtual Search.Filter GetFilter(ValueSource valueSource)
    Parameters
    Type Name Description
    ValueSource valueSource
    Returns
    Type Description
    Search.Filter
    | Improve this Doc View Source

    GetFilter(Search.Filter, ValueSource)

    Returns a new 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, Search.Filter), or pass it to using its . If the ValueSource is static, e.g. an indexed numeric field, then it may be more efficient to use . 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 abstract Search.Filter GetFilter(Search.Filter fastMatchFilter, ValueSource valueSource)
    Parameters
    Type Name Description
    Search.Filter fastMatchFilter
    ValueSource valueSource
    Returns
    Type Description
    Search.Filter
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)