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.SimScorer docScorer) |
Modifier and Type | Method and Description |
---|---|
protected void |
doCurrentSpans()
Called each time the scorer's Spans is advanced during frequency calculation
|
protected void |
doStartCurrentDoc()
Called before the current doc's frequency is calculated
|
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.
|
advance, asTwoPhaseIterator, cost, docID, freq, nextDoc, score, setFreqCurrentDoc, sloppyFreq
getChildren, getWeight
all, empty, slowAdvance
protected PayloadNearQuery.PayloadNearSpanScorer(Spans spans, SpanWeight weight, Similarity.SimScorer docScorer) 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 doStartCurrentDoc() throws IOException
SpanScorer
doStartCurrentDoc
in class SpanScorer
IOException
protected void doCurrentSpans() throws IOException
SpanScorer
doCurrentSpans
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.