java.lang.Object
org.apache.lucene.search.Rescorer
org.apache.lucene.search.SortRescorer
org.apache.lucene.expressions.ExpressionRescorer
A
Rescorer that uses an expression to re-score first pass hits. Functionally this is the
same as SortRescorer (if you build the Sort using Expression.getSortField(org.apache.lucene.expressions.Bindings, boolean)), except for the explain method which gives more detail by showing the
value of each variable.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionRescorer(Expression expression, Bindings bindings) Uses the providedExpressionto assign second pass scores. -
Method Summary
Modifier and TypeMethodDescriptionexplain(IndexSearcher searcher, Explanation firstPassExplanation, int docID) Explains how the score for the specified document was computed.Methods inherited from class org.apache.lucene.search.SortRescorer
rescore
-
Field Details
-
expression
-
bindings
-
-
Constructor Details
-
ExpressionRescorer
Uses the providedExpressionto assign second pass scores.
-
-
Method Details
-
explain
public Explanation explain(IndexSearcher searcher, Explanation firstPassExplanation, int docID) throws IOException Description copied from class:RescorerExplains how the score for the specified document was computed.- Overrides:
explainin classSortRescorer- Throws:
IOException
-