java.lang.Object
org.apache.lucene.search.LeafSimScorer
Similarity.SimScorer on a specific LeafReader.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NumericDocValuesprivate final Similarity.SimScorer -
Constructor Summary
ConstructorsConstructorDescriptionLeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores) Sole constructor: Score documents ofreaderwithscorer. -
Method Summary
Modifier and TypeMethodDescriptionexplain(int doc, Explanation freqExpl) Explain the score for the provided document assuming the given term document frequency.private longgetNormValue(int doc) Return the wrappedSimilarity.SimScorer.floatscore(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 ofreaderwithscorer.- 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:
-