Class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer

    • Field Detail

      • payloadScore

        protected float payloadScore
      • payloadsSeen

        protected int payloadsSeen
    • Constructor Detail

      • PayloadTermSpanScorer

        public PayloadTermSpanScorer​(TermSpans spans,
                                     Weight weight,
                                     Similarity.SimScorer docScorer)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setFreqCurrentDoc

        protected boolean setFreqCurrentDoc()
                                     throws java.io.IOException
        Overrides:
        setFreqCurrentDoc in class SpanScorer
        Throws:
        java.io.IOException
      • processPayload

        protected void processPayload​(Similarity similarity)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getSpanScore

        protected float getSpanScore()
                              throws java.io.IOException
        Returns the SpanScorer score only.

        Should not be overridden without good cause!

        Returns:
        the score for just the Span part w/o the payload
        Throws:
        java.io.IOException - if there is a low-level I/O error
        See Also:
        score()