Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SortedSetDocValuesReaderState

    Wraps a Lucene.Net.Index.IndexReader and resolves ords using existing Lucene.Net.Index.SortedSetDocValues APIs without a separate taxonomy index. This only supports flat facets (dimension + label), and it makes faceting a bit slower, adds some cost at reopen time, but avoids managing the separate taxonomy index. It also requires less RAM than the taxonomy index, as it manages the flat (2-level) hierarchy more efficiently. In addition, the tie-break during faceting is now meaningful (in label sorted order).

    NOTE: creating an instance of this class is somewhat costly, as it computes per-segment ordinal maps, so you should create it once and re-use that one instance for a given Lucene.Net.Index.IndexReader.

    Inheritance
    object
    SortedSetDocValuesReaderState
    DefaultSortedSetDocValuesReaderState
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Facet.SortedSet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public abstract class SortedSetDocValuesReaderState

    Constructors

    SortedSetDocValuesReaderState()

    Sole constructor.

    Declaration
    protected SortedSetDocValuesReaderState()

    Properties

    Count

    Number of unique labels.

    Declaration
    public abstract int Count { get; }
    Property Value
    Type Description
    int

    Field

    Indexed field we are reading.

    Declaration
    public abstract string Field { get; }
    Property Value
    Type Description
    string

    OrigReader

    Returns top-level index reader.

    Declaration
    public abstract IndexReader OrigReader { get; }
    Property Value
    Type Description
    IndexReader

    PrefixToOrdRange

    Returns mapping from prefix to SortedSetDocValuesReaderState.OrdRange.

    Declaration
    public abstract IDictionary<string, SortedSetDocValuesReaderState.OrdRange> PrefixToOrdRange { get; }
    Property Value
    Type Description
    IDictionary<string, SortedSetDocValuesReaderState.OrdRange>

    Methods

    GetDocValues()

    Return top-level doc values.

    Declaration
    public abstract SortedSetDocValues GetDocValues()
    Returns
    Type Description
    SortedSetDocValues

    GetOrdRange(string)

    Returns the SortedSetDocValuesReaderState.OrdRange for this dimension.

    Declaration
    public abstract SortedSetDocValuesReaderState.OrdRange GetOrdRange(string dim)
    Parameters
    Type Name Description
    string dim
    Returns
    Type Description
    SortedSetDocValuesReaderState.OrdRange
    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.