protected class BoostingTermQuery.BoostingTermWeight.BoostingSpanScorer extends SpanScorer
| Modifier and Type | Field and Description |
|---|---|
protected float |
payloadScore |
| Constructor and Description |
|---|
BoostingTermQuery.BoostingTermWeight.BoostingSpanScorer(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 void |
processPayload(Similarity similarity) |
float |
score()
Returns the score of the current document matching the query.
|
protected boolean |
setFreqCurrentDoc() |
doc, next, skipTogetSimilarity, score, scorepublic BoostingTermQuery.BoostingTermWeight.BoostingSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms) throws java.io.IOException
java.io.IOExceptionprotected boolean setFreqCurrentDoc()
throws java.io.IOException
setFreqCurrentDoc in class SpanScorerjava.io.IOExceptionprotected void processPayload(Similarity similarity) throws java.io.IOException
java.io.IOExceptionpublic float score()
throws java.io.IOException
ScorerDocIdSetIterator.next() or DocIdSetIterator.skipTo(int)
is called the first time.score in class SpanScorerjava.io.IOExceptionpublic Explanation explain(int doc) throws java.io.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.java.io.IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.