Lucene++ - a full-featured, c++ search engine
API Documentation
Describes the score computation for document and query, and can distinguish a match independent of a positive value. More...
#include <ComplexExplanation.h>
Public Member Functions | |
ComplexExplanation (bool match=false, double value=0, const String &description=EmptyString) | |
virtual | ~ComplexExplanation () |
virtual String | getClassName () |
boost::shared_ptr< ComplexExplanation > | shared_from_this () |
bool | getMatch () |
The match status of this explanation node. | |
void | setMatch (bool match) |
Sets the match status assigned to this explanation node. | |
virtual bool | isMatch () |
Indicates whether or not this Explanation models a good match. | |
![]() | |
Explanation (double value=0, const String &description=EmptyString) | |
virtual | ~Explanation () |
boost::shared_ptr< Explanation > | shared_from_this () |
virtual double | getValue () |
The value assigned to this explanation node. | |
virtual void | setValue (double value) |
Sets the value assigned to this explanation node. | |
virtual String | getDescription () |
A description of this explanation node. | |
virtual void | setDescription (const String &description) |
Sets the description of this explanation node. | |
virtual Collection< ExplanationPtr > | getDetails () |
The sub-nodes of this explanation node. | |
virtual void | addDetail (const ExplanationPtr &detail) |
Adds a sub-node to this explanation node. | |
virtual String | toString () |
Render an explanation as text. | |
virtual String | toHtml () |
Render an explanation as HTML. | |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Return clone of this object. | |
virtual int32_t | hashCode () |
Return hash code for this object. | |
virtual bool | equals (const LuceneObjectPtr &other) |
Return whether two objects are equal. | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. | |
virtual void | unlock () |
Unlock this object. | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. | |
virtual void | notifyAll () |
Notify all threads waiting for signal. | |
Static Public Member Functions | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
Protected Member Functions | |
virtual String | getSummary () |
A short one line summary which should contain all high level information about this Explanation, without the "Details". | |
![]() | |
virtual String | toString (int32_t depth) |
![]() | |
LuceneObject () | |
Protected Attributes | |
bool | match |
![]() | |
double | value |
String | description |
Collection< ExplanationPtr > | details |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Describes the score computation for document and query, and can distinguish a match independent of a positive value.
Lucene::ComplexExplanation::ComplexExplanation | ( | bool | match = false , |
double | value = 0 , |
||
const String & | description = EmptyString |
||
) |
|
virtual |
|
inlinestatic |
|
inlinevirtual |
Reimplemented from Lucene::Explanation.
bool Lucene::ComplexExplanation::getMatch | ( | ) |
The match status of this explanation node.
|
protectedvirtual |
A short one line summary which should contain all high level information about this Explanation, without the "Details".
Reimplemented from Lucene::Explanation.
|
virtual |
Indicates whether or not this Explanation models a good match.
If the match status is explicitly set this method uses it; otherwise it defers to the superclass.
Reimplemented from Lucene::Explanation.
void Lucene::ComplexExplanation::setMatch | ( | bool | match | ) |
Sets the match status assigned to this explanation node.
|
inline |
|
protected |