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.protected StringA short one line summary which should contain all high level information about this Explanation, without the "Details"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.protected StringtoString(int depth)
-
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. -
getSummary
A short one line summary which should contain all high level information about this Explanation, without the "Details" -
getDetails
The sub-nodes of this explanation node. -
addDetail
Adds a sub-node to this explanation node. -
toString
Render an explanation as text. -
toString
-
toHtml
Render an explanation as HTML.
-