Package org.apache.lucene.search
Class LeafSimScorer
- java.lang.Object
-
- org.apache.lucene.search.LeafSimScorer
-
public final class LeafSimScorer extends Object
Similarity.SimScorer
on a specificLeafReader
.
-
-
Constructor Summary
Constructors Constructor Description LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores)
Sole constructor: Score documents ofreader
withscorer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Explanation
explain(int doc, Explanation freqExpl)
Explain the score for the provided document assuming the given term document frequency.Similarity.SimScorer
getSimScorer()
Return the wrappedSimilarity.SimScorer
.float
score(int doc, float freq)
Score the provided document assuming the given term document frequency.
-
-
-
Constructor Detail
-
LeafSimScorer
public LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores) throws IOException
Sole constructor: Score documents ofreader
withscorer
.- Throws:
IOException
-
-
Method Detail
-
getSimScorer
public Similarity.SimScorer getSimScorer()
Return the wrappedSimilarity.SimScorer
.
-
score
public float score(int doc, float freq) throws IOException
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:
Similarity.SimScorer.score(float, long)
-
explain
public Explanation explain(int doc, Explanation freqExpl) throws IOException
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:
Similarity.SimScorer.explain(Explanation, long)
-
-