public class PayloadNearQuery.PayloadNearSpanScorer extends SpanScorer
Scorer.ChildScorer
Modifier and Type | Field and Description |
---|---|
protected float |
payloadScore |
docScorer, freq, numMatches
NO_MORE_DOCS
Modifier | Constructor and Description |
---|---|
protected |
PayloadNearQuery.PayloadNearSpanScorer(Spans spans,
SpanWeight weight,
Similarity similarity,
Similarity.SimScorer 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 |
scoreCurrentDoc()
Score the current doc.
|
protected void |
setFreqCurrentDoc()
Sets
SpanScorer.freq and SpanScorer.numMatches for the current document. |
advance, asTwoPhaseIterator, cost, docID, freq, nextDoc, score, sloppyFreq
getChildren, getWeight
all, empty, slowAdvance
protected PayloadNearQuery.PayloadNearSpanScorer(Spans spans, SpanWeight weight, Similarity similarity, Similarity.SimScorer docScorer) 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 void setFreqCurrentDoc() throws IOException
SpanScorer
SpanScorer.freq
and SpanScorer.numMatches
for the current document.
This will be called at most once per document.
setFreqCurrentDoc
in class SpanScorer
IOException
public float scoreCurrentDoc() throws IOException
SpanScorer
SpanScorer.freq
.scoreCurrentDoc
in class SpanScorer
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.