Class UninvertingReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    This will be removed in Lucene 7.0.

    public class UninvertingReader
    extends FilterLeafReader
    A FilterReader that exposes indexed values as if they also had docvalues.

    This is accomplished by "inverting the inverted index" or "uninversion".

    The uninversion process happens lazily: upon the first request for the field's docvalues (e.g. via LeafReader.getNumericDocValues(String) or similar), it will create the docvalues on-the-fly if needed and cache it, based on the core cache key of the wrapped LeafReader.