public class PayloadNearQuery.PayloadNearSpanScorer extends SpanScorer
Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
protected float |
payloadScore |
doc, docScorer, freq, more, numMatchesFLAG_FREQS, FLAG_NONENO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
PayloadNearQuery.PayloadNearSpanScorer(Spans spans,
Weight weight,
Similarity similarity,
Similarity.SloppySimScorer docScorer) |
| Modifier and Type | Method and Description |
|---|---|
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, sloppyFreqgetChildren, getWeight, score, scoreattributesprotected PayloadNearQuery.PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, Similarity.SloppySimScorer docScorer) throws IOException
IOExceptionpublic void getPayloads(Spans[] subSpans) throws IOException
IOExceptionprotected 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 scoredSpansprotected boolean setFreqCurrentDoc()
throws IOException
setFreqCurrentDoc in class SpanScorerIOExceptionpublic float score()
throws IOException
ScorerDocIdSetIterator.nextDoc() or DocIdSetIterator.advance(int)
is called the first time, or when called from within
Collector.collect(int).score in class SpanScorerIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.