protected class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer extends SpanScorer
Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
protected BytesRef |
payload |
protected float |
payloadScore |
protected int |
payloadsSeen |
doc, docScorer, freq, more, numMatches, spansFLAG_FREQS, FLAG_NONENO_MORE_DOCS| Constructor and Description |
|---|
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans,
Weight 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 |
score()
Returns the score of the current document matching the query.
|
protected boolean |
setFreqCurrentDoc() |
advance, cost, docID, freq, nextDoc, sloppyFreqgetChildren, getWeight, score, scoreattributesempty, slowAdvanceprotected BytesRef payload
protected float payloadScore
protected int payloadsSeen
public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity.SimScorer docScorer) throws IOException
IOExceptionprotected boolean setFreqCurrentDoc()
throws IOException
setFreqCurrentDoc in class SpanScorerIOExceptionprotected void processPayload(Similarity similarity) throws IOException
IOExceptionpublic float score()
throws IOException
ScorerDocIdSetIterator.nextDoc() or DocIdSetIterator.advance(int)
is called the first time, or when called from within
Collector.collect(int).score in class SpanScorergetSpanScore() * getPayloadScore()IOException - if there is a low-level I/O errorprotected float getSpanScore()
throws IOException
IOException - if there is a low-level I/O errorscore()protected float getPayloadScore()
PayloadFunction.docScore(int, String, int, float)Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.