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