Class PayloadNearQuery.PayloadNearSpanScorer

    • Field Detail

      • payloadScore

        protected float payloadScore
    • Constructor Detail

    • Method Detail

      • getPayloads

        public void getPayloads​(Spans[] subSpans)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • processPayloads

        protected void processPayloads​(java.util.Collection<byte[]> payLoads,
                                       int start,
                                       int end)
        By default, uses the PayloadFunction to score the payloads, but can be overridden to do other things.
        Parameters:
        payLoads - The payloads
        start - The start position of the span being scored
        end - The end position of the span being scored
        See Also:
        Spans
      • setFreqCurrentDoc

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