Class SortedSetDocValuesReaderState

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class SortedSetDocValuesReaderState
    extends Object
    implements Accountable
    Wraps a IndexReader and resolves ords using existing SortedSetDocValues APIs without a separate taxonomy index. This makes faceting a bit slower, adds some cost at reopen time, but avoids managing the separate taxonomy index. 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 IndexReader.