protected class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer extends SpanScorer
Scorer.ChildScorer
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
payload |
protected float |
payloadScore |
protected int |
payloadsSeen |
docScorer, freq, numMatches, spans
NO_MORE_DOCS
Constructor and Description |
---|
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans,
SpanWeight weight,
Similarity.SimScorer docScorer) |
Modifier and Type | Method and Description |
---|---|
protected float |
getPayloadScore()
The score for the payload
|
protected float |
getSpanScore()
Returns the SpanScorer score only.
|
protected void |
processPayload(Similarity similarity) |
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 BytesRef payload
protected float payloadScore
protected int payloadsSeen
public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, SpanWeight weight, Similarity.SimScorer docScorer) throws IOException
IOException
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
protected void processPayload(Similarity similarity) throws IOException
IOException
public float scoreCurrentDoc() throws IOException
SpanScorer
SpanScorer.freq
.scoreCurrentDoc
in class SpanScorer
getSpanScore()
* getPayloadScore()
IOException
- if there is a low-level I/O errorprotected float getSpanScore() throws IOException
Should not be overridden without good cause!
IOException
- if there is a low-level I/O errorSpanScorer.score()
protected float getPayloadScore()
PayloadFunction.docScore(int, String, int, float)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.