public class

PayloadNearQuery.PayloadNearSpanScorer

extends SpanScorer
java.lang.Object
   ↳ org.apache.lucene.search.DocIdSetIterator
     ↳ org.apache.lucene.search.Scorer
       ↳ org.apache.lucene.search.spans.SpanScorer
         ↳ org.apache.lucene.search.payloads.PayloadNearQuery.PayloadNearSpanScorer

Summary

[Expand]
Inherited Constants
From class org.apache.lucene.search.DocIdSetIterator
Fields
protected float payloadScore
[Expand]
Inherited Fields
From class org.apache.lucene.search.spans.SpanScorer
Protected Constructors
PayloadNearQuery.PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)
Public Methods
void getPayloads(Spans[] subSpans)
float score()
Returns the score of the current document matching the query.
Protected Methods
Explanation explain(int doc)
This method is no longer an official member of Scorer, but it is needed by SpanWeight to build an explanation.
void processPayloads(Collection<byte[]> payLoads, int start, int end)
By default, uses the PayloadFunction to score the payloads, but can be overridden to do other things.
boolean setFreqCurrentDoc()
[Expand]
Inherited Methods
From class org.apache.lucene.search.spans.SpanScorer
From class org.apache.lucene.search.Scorer
From class org.apache.lucene.search.DocIdSetIterator
From class java.lang.Object

Fields

protected float payloadScore

Protected Constructors

protected PayloadNearQuery.PayloadNearSpanScorer (Spans spans, Weight weight, Similarity similarity, byte[] norms)

Throws
IOException

Public Methods

public void getPayloads (Spans[] subSpans)

Throws
IOException

public float score ()

Returns the score of the current document matching the query. Initially invalid, until nextDoc() or advance(int) is called the first time, or when called from within collect(int).

Throws
IOException

Protected Methods

protected Explanation explain (int doc)

This method is no longer an official member of Scorer, but it is needed by SpanWeight to build an explanation.

Throws
IOException

protected void processPayloads (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

protected boolean setFreqCurrentDoc ()

Throws
IOException