public final class LeafSimScorer
extends java.lang.Object
Similarity.SimScorer
on a specific LeafReader
.Constructor and Description |
---|
LeafSimScorer(Similarity.SimScorer scorer,
LeafReader reader,
java.lang.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, java.lang.String field, boolean needsScores) throws java.io.IOException
reader
with scorer
.java.io.IOException
public Similarity.SimScorer getSimScorer()
Similarity.SimScorer
.public float score(int doc, float freq) throws java.io.IOException
java.io.IOException
Similarity.SimScorer.score(float, long)
public Explanation explain(int doc, Explanation freqExpl) throws java.io.IOException
java.io.IOException
Similarity.SimScorer.explain(Explanation, long)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.