#include <termgenerator.h>
Public Member Functions | |
TermGenerator (const TermGenerator &o) | |
Copy constructor. | |
TermGenerator & | operator= (const TermGenerator &o) |
Assignment. | |
TermGenerator () | |
Default constructor. | |
~TermGenerator () | |
Destructor. | |
void | set_stemmer (const Xapian::Stem &stemmer) |
Set the Xapian::Stem object to be used for generating stemmed terms. | |
void | set_stopper (const Xapian::Stopper *stop=NULL) |
Set the Xapian::Stopper object to be used for identifying stopwords. | |
void | set_document (const Xapian::Document &doc) |
Set the current document. | |
const Xapian::Document & | get_document () const |
Get the current document. | |
void | index_text (const Xapian::Utf8Iterator &itor, Xapian::termcount weight=1, const std::string &prefix="") |
Index some text. | |
void | index_text (const std::string &text, Xapian::termcount weight=1, const std::string &prefix="") |
Index some text in a std::string. | |
void | index_text_without_positions (const Xapian::Utf8Iterator &itor, Xapian::termcount weight=1, const std::string &prefix="") |
Index some text without positional information. | |
void | index_text_without_positions (const std::string &text, Xapian::termcount weight=1, const std::string &prefix="") |
Index some text in a std::string without positional information. | |
void | increase_termpos (Xapian::termcount delta=100) |
Increase the termpos used by index_text by delta. | |
Xapian::termcount | get_termpos () const |
Get the current term position. | |
void | set_termpos (Xapian::termcount termpos) |
Set the current term position. | |
std::string | get_description () const |
Return a string describing this object. |
This module takes a piece of text and parses it to produce words which are then used to generate suitable terms for indexing. The terms generated are suitable for use with Query objects produced by the QueryParser class.
|
Copy constructor.
|
|
Default constructor.
|
|
Destructor.
|
|
Return a string describing this object.
|
|
Get the current document.
|
|
Get the current term position.
|
|
Increase the termpos used by index_text by delta. This can be used to prevent phrase searches from spanning two unconnected blocks of text (e.g. the title and body text). |
|
Index some text in a std::string.
|
|
Index some text.
|
|
Index some text in a std::string without positional information. Just like index_text, but no positional information is generated. This means that the database will be significantly smaller, but that phrase searching and NEAR won't be supported. |
|
Index some text without positional information. Just like index_text, but no positional information is generated. This means that the database will be significantly smaller, but that phrase searching and NEAR won't be supported. |
|
Assignment.
|
|
Set the current document.
|
|
Set the Xapian::Stem object to be used for generating stemmed terms.
|
|
Set the Xapian::Stopper object to be used for identifying stopwords.
|
|
Set the current term position.
|