Xapian::Database - Search database object
This class represents a Xapian database for searching. See Xapian::WritableDatabase for an object suitable for indexing. To perform searches, this class works with the Xapian::Query object.
Class constructor. Can either take a path to an existing database or another database class as the first parameter
Return a clone of this class.
Add an existing database (or group of databases) to those accessed by this object.
This re-opens the database(s) to the latest available version(s). It can be used either to make sure the latest results are returned, or to recover from a Xapian::DatabaseModifiedError.
Close the database. This also implies a commit() unless a transaction is in progress.
Returns a new Xapian::Enquire object. Any extra parameters are passed to set_query.
Returns the number of document indexed in this database.
Returns the id of the last used document.
Returns the length of a given document.
Returns a Xapian::Document object for the given document.
Get the average length of the documents in the database.
Get the number of documents in the database indexed by a given term.
returns true if this term exists in the database, or false otherwise.
return a description of this object.
returns a suggested spelling correction.
Returns a Xapian::TermIterator iterating over the termlist for the the entire database. If the optional prefix argument is non-empty, only terms starting with that string are returned.
Returns a Xapian::TermIterator pointing to the end of the termlist corresponding to allterms_begin.
Returns a Xapian::TermIterator pointing to the start of the termlist for a given document.
Returns a Xapian::TermIterator pointing to the end of the termlist for a given document.
Returns a Xapian::PositionIterator pointing to the start of the position list for a given term in the given document.
Returns a Xapian::PositionIterator pointing to the end of the position list for a given term in the given document.
Returns a Xapian::PostingIterator pointing to the start of the posting list for a given term.
Returns a Xapian::PostingIterator pointing to the end of the posting list for a given term.
Send a "keep-alive" to remote databases to stop them timing out.
Get the number of elements indexed by a certain term.