public class PayloadNearQuery.PayloadNearSpanScorer extends SpanScorer
| Modifier and Type | Field and Description |
|---|---|
protected float |
payloadScore |
doc, firstTime, freq, more, norms, value, weightNO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
PayloadNearSpanScorer(Spans spans,
Weight weight,
Similarity similarity,
byte[] norms) |
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(int doc)
Returns an explanation of the score for a document.
|
void |
getPayloads(Spans[] subSpans) |
protected void |
processPayloads(java.util.Collection 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, doc, docID, next, nextDoc, skipToprotected PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) throws java.io.IOException
java.io.IOExceptionpublic void getPayloads(Spans[] subSpans) throws java.io.IOException
java.io.IOExceptionprotected void processPayloads(java.util.Collection 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 scoredSpansprotected boolean setFreqCurrentDoc()
throws java.io.IOException
setFreqCurrentDoc in class SpanScorerjava.io.IOExceptionpublic float score()
throws java.io.IOException
ScorerDocIdSetIterator.next() or DocIdSetIterator.skipTo(int)
is called the first time, or when called from within
Collector.collect(int).score in class SpanScorerjava.io.IOExceptionpublic Explanation explain(int doc) throws java.io.IOException
ScorerDocIdSetIterator.next(), DocIdSetIterator.skipTo(int) and
Scorer.score(HitCollector) methods should not be used.explain in class SpanScorerdoc - The document number for the explanation.java.io.IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.