public final class LeafSimScorer extends Object
Similarity.SimScorer on a specific LeafReader.| Constructor and Description |
|---|
LeafSimScorer(Similarity.SimScorer scorer,
LeafReader reader,
String field,
boolean needsScores)
Sole constructor: Score documents of
reader with scorer. |
| Modifier and Type | Method and 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 wrapped
Similarity.SimScorer. |
float |
score(int doc,
float freq)
Score the provided document assuming the given term document frequency.
|
public LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores) throws IOException
reader with scorer.IOExceptionpublic Similarity.SimScorer getSimScorer()
Similarity.SimScorer.public float score(int doc,
float freq)
throws IOException
IOExceptionSimilarity.SimScorer.score(float, long)public Explanation explain(int doc, Explanation freqExpl) throws IOException
IOExceptionSimilarity.SimScorer.explain(Explanation, long)Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.