Class SpanContainingQuery.SpanContainingWeight

    • Constructor Detail

      • SpanContainingWeight

        public SpanContainingWeight​(IndexSearcher searcher,
                                    java.util.Map<Term,​TermStates> terms,
                                    SpanWeight bigWeight,
                                    SpanWeight littleWeight,
                                    float boost)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getSpans

        public Spans getSpans​(LeafReaderContext context,
                              SpanWeight.Postings requiredPostings)
                       throws java.io.IOException
        Return spans from big that contain at least one spans from little. The payload is from the spans of big.
        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