Package org.apache.lucene.search
Class LeafSimScorer
java.lang.Object
org.apache.lucene.search.LeafSimScorer
Similarity.SimScorer
on a specific LeafReader
.-
Constructor Summary
ConstructorDescriptionLeafSimScorer
(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores) Sole constructor: Score documents ofreader
withscorer
. -
Method Summary
Modifier and TypeMethodDescriptionexplain
(int doc, Explanation freqExpl) Explain the score for the provided document assuming the given term document frequency.Return the wrappedSimilarity.SimScorer
.float
score
(int doc, float freq) Score the provided document assuming the given term document frequency.
-
Constructor Details
-
LeafSimScorer
public LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores) throws IOException Sole constructor: Score documents ofreader
withscorer
.- Throws:
IOException
-
-
Method Details
-
getSimScorer
Return the wrappedSimilarity.SimScorer
. -
score
Score the provided document assuming the given term document frequency. This method must be called on non-decreasing sequences of doc ids.- Throws:
IOException
- See Also:
-
explain
Explain the score for the provided document assuming the given term document frequency. This method must be called on non-decreasing sequences of doc ids.- Throws:
IOException
- See Also:
-