17 Explanation(
double value = 0,
const String& description = EmptyString);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Describes the score computation for document and query.
Definition Explanation.h:15
virtual void setValue(double value)
Sets the value assigned to this explanation node.
virtual String toString(int32_t depth)
virtual bool isMatch()
Indicates whether or not this Explanation models a good match.
virtual void addDetail(const ExplanationPtr &detail)
Adds a sub-node to this explanation node.
Collection< ExplanationPtr > details
Definition Explanation.h:25
virtual String toHtml()
Render an explanation as HTML.
virtual Collection< ExplanationPtr > getDetails()
The sub-nodes of this explanation node.
virtual void setDescription(const String &description)
Sets the description of this explanation node.
virtual String getSummary()
A short one line summary which should contain all high level information about this Explanation,...
Explanation(double value=0, const String &description=EmptyString)
String description
Definition Explanation.h:24
virtual String toString()
Render an explanation as text.
virtual double getValue()
The value assigned to this explanation node.
virtual String getDescription()
A description of this explanation node.
double value
Definition Explanation.h:23
Small Util class used to pass both an idf factor as well as an explanation for that factor.
Definition Explanation.h:70
virtual ~IDFExplanation()
virtual double getIdf()=0
virtual String explain()=0
This should be calculated lazily if possible.
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Explanation > ExplanationPtr
Definition LuceneTypes.h:333