Xapian::TermGenerator Class Reference

Parse free text and generate terms. More...

#include <termgenerator.h>

List of all members.

Public Member Functions

 TermGenerator (const TermGenerator &o)
 Copy constructor.
TermGeneratoroperator= (const TermGenerator &o)
 Assignment.
 TermGenerator ()
 Default constructor.
 ~TermGenerator ()
 Destructor.
void set_stemmer (const Xapian::Stem &stemmer)
 Set the stemmer.
void set_stopper (const Xapian::Stopper *stop=NULL)
 Set the stopper.
void set_document (const Xapian::Document &doc)
 Set the current document.
const Xapian::Documentget_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.


Detailed Description

Parse free text and generate terms.


Constructor & Destructor Documentation

Xapian::TermGenerator::TermGenerator const TermGenerator o  ) 
 

Copy constructor.

Xapian::TermGenerator::TermGenerator  ) 
 

Default constructor.

Xapian::TermGenerator::~TermGenerator  ) 
 

Destructor.


Member Function Documentation

std::string Xapian::TermGenerator::get_description  )  const
 

Return a string describing this object.

const Xapian::Document& Xapian::TermGenerator::get_document  )  const
 

Get the current document.

Xapian::termcount Xapian::TermGenerator::get_termpos  )  const
 

Get the current term position.

void Xapian::TermGenerator::increase_termpos Xapian::termcount  delta = 100  ) 
 

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).

void Xapian::TermGenerator::index_text const std::string &  text,
Xapian::termcount  weight = 1,
const std::string &  prefix = ""
[inline]
 

Index some text in a std::string.

void Xapian::TermGenerator::index_text const Xapian::Utf8Iterator itor,
Xapian::termcount  weight = 1,
const std::string &  prefix = ""
 

Index some text.

void Xapian::TermGenerator::index_text_without_positions const std::string &  text,
Xapian::termcount  weight = 1,
const std::string &  prefix = ""
[inline]
 

Index some text in a std::string without positional information.

void Xapian::TermGenerator::index_text_without_positions const Xapian::Utf8Iterator itor,
Xapian::termcount  weight = 1,
const std::string &  prefix = ""
 

Index some text without positional information.

TermGenerator& Xapian::TermGenerator::operator= const TermGenerator o  ) 
 

Assignment.

void Xapian::TermGenerator::set_document const Xapian::Document doc  ) 
 

Set the current document.

void Xapian::TermGenerator::set_stemmer const Xapian::Stem stemmer  ) 
 

Set the stemmer.

void Xapian::TermGenerator::set_stopper const Xapian::Stopper stop = NULL  ) 
 

Set the stopper.

void Xapian::TermGenerator::set_termpos Xapian::termcount  termpos  ) 
 

Set the current term position.


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.0).
Generated on 18 May 2007 by Doxygen 1.4.6.