java.lang.Object
org.apache.lucene.search.Explanation
Expert: Describes the score computation for document and query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final List<Explanation> private final booleanprivate final Number -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExplanation(boolean match, Number value, String description, Collection<Explanation> details) Create a new explanation -
Method Summary
Modifier and TypeMethodDescriptionbooleanA description of this explanation node.The sub-nodes of this explanation node.private StringgetValue()The value assigned to this explanation node.inthashCode()booleanisMatch()Indicates whether or not this Explanation models a match.static Explanationmatch(Number value, String description, Collection<Explanation> details) Create a new explanation for a match.static Explanationmatch(Number value, String description, Explanation... details) Create a new explanation for a match.static ExplanationnoMatch(String description, Collection<Explanation> details) Create a new explanation for a document which does not match.static ExplanationnoMatch(String description, Explanation... details) Create a new explanation for a document which does not match.toString()Render an explanation as text.private StringtoString(int depth)
-
Field Details
-
match
private final boolean match -
value
-
description
-
details
-
-
Constructor Details
-
Explanation
private Explanation(boolean match, Number value, String description, Collection<Explanation> details) Create a new explanation
-
-
Method Details
-
match
Create a new explanation for a match.- Parameters:
value- the contribution to the score of the documentdescription- howvaluewas computeddetails- sub explanations that contributed to this explanation
-
match
Create a new explanation for a match.- Parameters:
value- the contribution to the score of the documentdescription- howvaluewas computeddetails- sub explanations that contributed to this explanation
-
noMatch
Create a new explanation for a document which does not match. -
noMatch
Create a new explanation for a document which does not match. -
isMatch
public boolean isMatch()Indicates whether or not this Explanation models a match. -
getValue
The value assigned to this explanation node. -
getDescription
A description of this explanation node. -
getSummary
-
getDetails
The sub-nodes of this explanation node. -
toString
Render an explanation as text. -
toString
-
equals
-
hashCode
public int hashCode()
-