Class SpanWithinQuery.SpanWithinWeight

    • Constructor Detail

    • Method Detail

      • getSpans

        public Spans getSpans​(LeafReaderContext context,
                              SpanWeight.Postings requiredPostings)
                       throws java.io.IOException
        Return spans from little that are contained in a spans from big. The payload is from the spans of little.
        Specified by:
        getSpans in class SpanWeight
        Parameters:
        context - a LeafReaderContext for this Spans
        Returns:
        a Spans
        Throws:
        java.io.IOException - on error
      • isCacheable

        public boolean isCacheable​(LeafReaderContext ctx)
        Returns:
        true if the object can be cached against a given leaf