java.lang.Object
org.apache.lucene.search.Explanation
Expert: Describes the score computation for document and query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final List
<Explanation> private final boolean
private final Number
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Explanation
(boolean match, Number value, String description, Collection<Explanation> details) Create a new explanation -
Method Summary
Modifier and TypeMethodDescriptionboolean
A description of this explanation node.The sub-nodes of this explanation node.private String
getValue()
The value assigned to this explanation node.int
hashCode()
boolean
isMatch()
Indicates whether or not this Explanation models a match.static Explanation
match
(Number value, String description, Collection<Explanation> details) Create a new explanation for a match.static Explanation
match
(Number value, String description, Explanation... details) Create a new explanation for a match.static Explanation
noMatch
(String description, Collection<Explanation> details) Create a new explanation for a document which does not match.static Explanation
noMatch
(String description, Explanation... details) Create a new explanation for a document which does not match.toString()
Render an explanation as text.private String
toString
(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
- howvalue
was 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
- howvalue
was 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()
-