Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
public class: Explanation [javadoc | source]
java.lang.Object
   org.apache.lucene.search.Explanation

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ComplexExplanation

Expert: Describes the score computation for document and query.
Constructor:
 public Explanation() 
 public Explanation(float value,
    String description) 
Method from org.apache.lucene.search.Explanation Summary:
addDetail,   getDescription,   getDetails,   getSummary,   getValue,   isMatch,   setDescription,   setValue,   toHtml,   toString,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.Explanation Detail:
 public  void addDetail(Explanation detail) 
    Adds a sub-node to this explanation node.
 public String getDescription() 
    A description of this explanation node.
 public 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"
 public float getValue() 
    The value assigned to this explanation node.
 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.

 public  void setDescription(String description) 
    Sets the description of this explanation node.
 public  void setValue(float value) 
    Sets the value assigned to this explanation node.
 public String toHtml() 
    Render an explanation as HTML.
 public String toString() 
    Render an explanation as text.
 protected String toString(int depth)