protected class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer extends SpanScorer
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
payload |
protected float |
payloadScore |
protected int |
payloadsSeen |
protected TermPositions |
positions |
doc, firstTime, freq, more, norms, spans, value, weightNO_MORE_DOCS| Constructor and Description |
|---|
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans,
Weight weight,
Similarity similarity,
byte[] norms) |
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(int doc)
Returns an explanation of the score for a document.
|
protected float |
getPayloadScore()
The score for the payload
|
protected float |
getSpanScore()
Returns the SpanScorer score only.
|
protected void |
processPayload(Similarity similarity) |
float |
score()
Returns the score of the current document matching the query.
|
protected boolean |
setFreqCurrentDoc() |
advance, doc, docID, next, nextDoc, skipToprotected byte[] payload
protected TermPositions positions
protected float payloadScore
protected int payloadsSeen
public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms) throws IOException
IOExceptionprotected boolean setFreqCurrentDoc()
throws IOException
setFreqCurrentDoc in class SpanScorerIOExceptionprotected void processPayload(Similarity similarity) throws IOException
IOExceptionpublic float score()
throws IOException
ScorerDocIdSetIterator.next() or DocIdSetIterator.skipTo(int)
is called the first time, or when called from within
Collector.collect(int).score in class SpanScorergetSpanScore() * getPayloadScore()IOExceptionprotected float getSpanScore()
throws IOException
IOExceptionscore()protected float getPayloadScore()
PayloadFunction.docScore(int, String, int, float)public Explanation explain(int doc) throws IOException
ScorerDocIdSetIterator.next(), DocIdSetIterator.skipTo(int) and
Scorer.score(HitCollector) methods should not be used.explain in class SpanScorerdoc - The document number for the explanation.IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.