java.lang.Object
org.apache.lucene.search.LeafSimScorer
Similarity.SimScorer
on a specific LeafReader
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NumericDocValues
private final Similarity.SimScorer
-
Constructor Summary
ConstructorsConstructorDescriptionLeafSimScorer
(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.private long
getNormValue
(int doc) Return the wrappedSimilarity.SimScorer
.float
score
(int doc, float freq) Score the provided document assuming the given term document frequency.
-
Field Details
-
scorer
-
norms
-
-
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
. -
getNormValue
- Throws:
IOException
-
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:
-