Package org.apache.lucene.search
Class MultiNormsLeafSimScorer
java.lang.Object
org.apache.lucene.search.MultiNormsLeafSimScorer
Copy of
LeafSimScorer that sums document's norms from multiple fields.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float[]Cache of decoded norms.private final NumericDocValuesprivate final Similarity.SimScorer -
Constructor Summary
ConstructorsConstructorDescriptionMultiNormsLeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, Collection<BM25FQuery.FieldAndWeight> normFields, 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) floatscore(int doc, float freq) Score the provided document assuming the given term document frequency.
-
Field Details
-
LENGTH_TABLE
private static final float[] LENGTH_TABLECache of decoded norms. -
scorer
-
norms
-
-
Constructor Details
-
MultiNormsLeafSimScorer
MultiNormsLeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, Collection<BM25FQuery.FieldAndWeight> normFields, boolean needsScores) throws IOException Sole constructor: Score documents ofreaderwithscorer.- Throws:
IOException
-
-
Method Details
-
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:
-