Package org.apache.lucene.search
Class Explanation
java.lang.Object
org.apache.lucene.search.Explanation
- Direct Known Subclasses:
ComplexExplanation
Expert: Describes the score computation for document and query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDetail(Explanation detail) Adds a sub-node to this explanation node.A description of this explanation node.The sub-nodes of this explanation node.floatgetValue()The value assigned to this explanation node.booleanisMatch()Indicates whether or not this Explanation models a good match.voidsetDescription(String description) Sets the description of this explanation node.voidsetValue(float value) Sets the value assigned to this explanation node.toHtml()Render an explanation as HTML.toString()Render an explanation as text.
-
Constructor Details
-
Explanation
public Explanation() -
Explanation
-
-
Method Details
-
isMatch
public boolean isMatch()Indicates whether or not this Explanation models a good match.By default, an Explanation represents a "match" if the value is positive.
- See Also:
-
getValue
public float getValue()The value assigned to this explanation node. -
setValue
public void setValue(float value) Sets the value assigned to this explanation node. -
getDescription
A description of this explanation node. -
setDescription
Sets the description of this explanation node. -
getDetails
The sub-nodes of this explanation node. -
addDetail
Adds a sub-node to this explanation node. -
toString
Render an explanation as text. -
toHtml
Render an explanation as HTML.
-