Class OffsetsFromPositions

  • All Implemented Interfaces:
    OffsetsRetrievalStrategy

    public final class OffsetsFromPositions
    extends Object
    implements OffsetsRetrievalStrategy
    This strategy applies to fields with stored positions but no offsets. We re-analyze the field's value to find out offsets of match positions.

    Note that this may fail if index data (positions stored in the index) is out of sync with the field values or the analyzer. This strategy assumes it'll never happen.