public class PayloadNearQuery.PayloadNearSpanScorer extends SpanScorer
Modifier and Type | Field and Description |
---|---|
protected float |
payloadScore |
NO_MORE_DOCS
Modifier | Constructor and Description |
---|---|
protected |
PayloadNearQuery.PayloadNearSpanScorer(Spans spans,
Weight weight,
Similarity similarity,
byte[] norms) |
Modifier and Type | Method and Description |
---|---|
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. |
void |
getPayloads(Spans[] subSpans) |
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. |
float |
score()
Returns the score of the current document matching the query.
|
protected boolean |
setFreqCurrentDoc() |
advance, docID, freq, nextDoc
getSimilarity, score, score, visitScorers, visitSubScorers
protected PayloadNearQuery.PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) throws IOException
IOException
public void getPayloads(Spans[] subSpans) throws IOException
IOException
protected void processPayloads(Collection<byte[]> payLoads, int start, int end)
PayloadFunction
to score the payloads, but
can be overridden to do other things.payLoads
- The payloadsstart
- The start position of the span being scoredend
- The end position of the span being scoredSpans
protected boolean setFreqCurrentDoc() throws IOException
setFreqCurrentDoc
in class SpanScorer
IOException
public float score() throws IOException
Scorer
DocIdSetIterator.nextDoc()
or DocIdSetIterator.advance(int)
is called the first time, or when called from within
Collector.collect(int)
.score
in class SpanScorer
IOException
protected Explanation explain(int doc) throws IOException
SpanScorer
Scorer
,
but it is needed by SpanWeight to build an explanation.explain
in class SpanScorer
IOException