Class MultiFields

  • All Implemented Interfaces:
    Iterable<String>

    public final class MultiFields
    extends Fields
    Exposes flex API, merged from flex API of sub-segments. This is useful when you're interacting with an IndexReader implementation that consists of sequential sub-readers (eg DirectoryReader or MultiReader).

    NOTE: for composite readers, you'll get better performance by gathering the sub readers using IndexReader.getContext() to get the atomic leaves and then operate per-AtomicReader, instead of using this class.

    • Constructor Detail

      • MultiFields

        public MultiFields​(Fields[] subs,
                           ReaderSlice[] subSlices)
        Expert: construct a new MultiFields instance directly.