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, freq, more, norms, spans, value
NO_MORE_DOCS
Constructor and Description |
---|
PayloadTermSpanScorer(TermSpans spans,
Weight weight,
Similarity similarity,
byte[] norms) |
Modifier and Type | Method and Description |
---|---|
protected Explanation |
explain(int doc)
This method is no longer an official member of
Scorer ,
but it is needed by SpanWeight to build an explanation. |
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
getSimilarity, score, score, visitScorers, visitSubScorers
protected byte[] payload
protected TermPositions positions
protected float payloadScore
protected int payloadsSeen
public PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms) throws java.io.IOException
java.io.IOException
protected boolean setFreqCurrentDoc() throws java.io.IOException
setFreqCurrentDoc
in class SpanScorer
java.io.IOException
protected void processPayload(Similarity similarity) throws java.io.IOException
java.io.IOException
public float score() throws java.io.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()
java.io.IOException
protected float getSpanScore() throws java.io.IOException
java.io.IOException
score()
protected float getPayloadScore()
PayloadFunction.docScore(int, String, int, float)
protected Explanation explain(int doc) throws java.io.IOException
SpanScorer
Scorer
,
but it is needed by SpanWeight to build an explanation.explain
in class SpanScorer
java.io.IOException
Copyright © 2000-2023 Apache Software Foundation. All Rights Reserved.