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, spansNO_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, sloppyFreqgetChildren, getWeightall, empty, slowAdvanceprotected BytesRef payload
protected float payloadScore
protected int payloadsSeen
public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, SpanWeight weight, Similarity.SimScorer docScorer) throws IOException
IOExceptionprotected void setFreqCurrentDoc()
throws IOException
SpanScorerSpanScorer.freq and SpanScorer.numMatches for the current document.
This will be called at most once per document.
setFreqCurrentDoc in class SpanScorerIOExceptionprotected void processPayload(Similarity similarity) throws IOException
IOExceptionpublic float scoreCurrentDoc()
throws IOException
SpanScorerSpanScorer.freq.scoreCurrentDoc in class SpanScorergetSpanScore() * 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.