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, spans
NO_MORE_DOCS
Constructor and Description |
---|
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans,
Weight weight,
Similarity.SloppySimScorer 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, docID, freq, nextDoc
getChildren, getWeight, score, score
protected BytesRef payload
protected float payloadScore
protected int payloadsSeen
public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity.SloppySimScorer docScorer) throws IOException
IOException
protected boolean setFreqCurrentDoc() throws IOException
setFreqCurrentDoc
in class SpanScorer
IOException
protected void processPayload(Similarity similarity) throws IOException
IOException
public float score() throws IOException
Scorer
DocIdSetIterator.nextDoc()
or DocIdSetIterator.advance(int)
is called the first time, or when called from within
Collector.collect(int)
.score
in class SpanScorer
getSpanScore()
* 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-2012 Apache Software Foundation. All Rights Reserved.