xapian-core  1.4.26
Public Member Functions | Public Attributes | List of all members
SimpleMatchSpy Class Reference
+ Inheritance diagram for SimpleMatchSpy:
+ Collaboration diagram for SimpleMatchSpy:

Public Member Functions

void operator() (const Xapian::Document &doc, double) override
 Register a document with the match spy. More...
 
- Public Member Functions inherited from Xapian::MatchSpy
 MatchSpy ()
 Default constructor, needed by subclass constructors. More...
 
virtual ~MatchSpy ()
 Virtual destructor, because we have virtual methods. More...
 
virtual MatchSpyclone () const
 Clone the match spy. More...
 
virtual std::string name () const
 Return the name of this match spy. More...
 
virtual std::string serialise () const
 Return this object's parameters serialised as a single string. More...
 
virtual MatchSpyunserialise (const std::string &serialised, const Registry &context) const
 Unserialise parameters. More...
 
virtual std::string serialise_results () const
 Serialise the results of this match spy. More...
 
virtual void merge_results (const std::string &serialised)
 Unserialise some results, and merge them into this matchspy. More...
 
virtual std::string get_description () const
 Return a string describing this object. More...
 
MatchSpyrelease ()
 Start reference counting this object. More...
 
const MatchSpyrelease () const
 Start reference counting this object. More...
 
- Public Member Functions inherited from Xapian::Internal::opt_intrusive_base
 opt_intrusive_base (const opt_intrusive_base &)
 
opt_intrusive_baseoperator= (const opt_intrusive_base &)
 
 opt_intrusive_base ()
 Construct object which is initially not reference counted. More...
 
virtual ~opt_intrusive_base ()
 
void ref () const
 
void unref () const
 

Public Attributes

std::vector< std::string > seen
 
- Public Attributes inherited from Xapian::Internal::opt_intrusive_base
unsigned _refs
 Reference count. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base
void release () const
 Start reference counting. More...
 

Detailed Description

Definition at line 43 of file api_matchspy.cc.

Member Function Documentation

◆ operator()()

void SimpleMatchSpy::operator() ( const Xapian::Document doc,
double  wt 
)
inlineoverridevirtual

Register a document with the match spy.

This is called by the matcher once with each document seen by the matcher during the match process. Note that the matcher will often not see all the documents which match the query, due to optimisations which allow low-weighted documents to be skipped, and allow the match process to be terminated early.

Parameters
docThe document seen by the match spy.
wtThe weight of the document.

Implements Xapian::MatchSpy.

Definition at line 48 of file api_matchspy.cc.

References Xapian::Document::get_data().

Member Data Documentation

◆ seen

std::vector<std::string> SimpleMatchSpy::seen

Definition at line 46 of file api_matchspy.cc.

Referenced by DEFINE_TESTCASE().


The documentation for this class was generated from the following file: