|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Explanation
public class Explanation
Expert: Describes the score computation for document and query.
Nested Class Summary | |
---|---|
static class |
Explanation.IDFExplanation
Small Util class used to pass both an idf factor as well as an explanation for that factor. |
Constructor Summary | |
---|---|
Explanation()
|
|
Explanation(float value,
String description)
|
Method Summary | |
---|---|
void |
addDetail(Explanation detail)
Adds a sub-node to this explanation node. |
String |
getDescription()
A description of this explanation node. |
Explanation[] |
getDetails()
The sub-nodes of this explanation node. |
protected String |
getSummary()
A short one line summary which should contain all high level information about this Explanation, without the "Details" |
float |
getValue()
The value assigned to this explanation node. |
boolean |
isMatch()
Indicates whether or not this Explanation models a good match. |
void |
setDescription(String description)
Sets the description of this explanation node. |
void |
setValue(float value)
Sets the value assigned to this explanation node. |
String |
toHtml()
Render an explanation as HTML. |
String |
toString()
Render an explanation as text. |
protected String |
toString(int depth)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Explanation()
public Explanation(float value, String description)
Method Detail |
---|
public boolean isMatch()
By default, an Explanation represents a "match" if the value is positive.
getValue()
public float getValue()
public void setValue(float value)
public String getDescription()
public void setDescription(String description)
protected String getSummary()
public Explanation[] getDetails()
public void addDetail(Explanation detail)
public String toString()
toString
in class Object
protected String toString(int depth)
public String toHtml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |