ept::core::xapian::Query Struct Reference

#include <xapian.h>

List of all members.

Public Types

typedef std::set< std::string > Terms

Public Member Functions

void setQualityCutoff (int c)
void setExpand (bool e)
 Query (Xapian::Database &e)
wibble::Tokenizer queryTokenizer (std::string q) const
template<typename Out>
void tokenizeQuery (std::string q, Out o) const
template<typename Out>
void expand (Out o) const
void updateEnquire ()
List results ()
std::map< std::string, int > relevantTags (int n=30)
void addTerms (std::string t, bool partial=false, bool exclude=false)
void addTerms (const Terms &t, bool exclude=false)
void addSecondaryTerm (const std::string &term, bool partial=false)

Public Attributes

Xapian::Database * m_db
Xapian::Enquire m_enq
Xapian::Stem m_stem
Terms m_include
Terms m_exclude
Terms m_secondary
int m_cutoff
bool m_expand


Member Typedef Documentation

typedef std::set< std::string > ept::core::xapian::Query::Terms


Constructor & Destructor Documentation

ept::core::xapian::Query::Query ( Xapian::Database &  e  )  [inline]

References m_cutoff, and m_expand.


Member Function Documentation

void ept::core::xapian::Query::setQualityCutoff ( int  c  )  [inline]

References m_cutoff.

Referenced by ept::core::xapian::Source::query().

void ept::core::xapian::Query::setExpand ( bool  e  )  [inline]

References m_expand.

Referenced by ept::core::xapian::Source::query().

wibble::Tokenizer ept::core::xapian::Query::queryTokenizer ( std::string  q  )  const [inline]

Referenced by tokenizeQuery().

template<typename Out>
void ept::core::xapian::Query::tokenizeQuery ( std::string  q,
Out  o 
) const [inline]

References m_stem, and queryTokenizer().

Referenced by addTerms().

template<typename Out>
void ept::core::xapian::Query::expand ( Out  o  )  const [inline]

References m_enq.

Referenced by updateEnquire().

void ept::core::xapian::Query::updateEnquire (  )  [inline]

List ept::core::xapian::Query::results (  )  [inline]

References m_enq, and updateEnquire().

Referenced by TestXapian::list(), and TestXapian::listCount().

std::map< std::string, int > ept::core::xapian::Query::relevantTags ( int  n = 30  )  [inline]

References m_enq, and updateEnquire().

void ept::core::xapian::Query::addTerms ( std::string  t,
bool  partial = false,
bool  exclude = false 
) [inline]

void ept::core::xapian::Query::addTerms ( const Terms t,
bool  exclude = false 
) [inline]

References m_exclude, and m_include.

void ept::core::xapian::Query::addSecondaryTerm ( const std::string &  term,
bool  partial = false 
) [inline]


Member Data Documentation

Xapian::Database* ept::core::xapian::Query::m_db

Referenced by addSecondaryTerm(), and addTerms().

Referenced by tokenizeQuery().

Referenced by addTerms(), and updateEnquire().

Referenced by addSecondaryTerm(), and updateEnquire().

Referenced by Query(), and setQualityCutoff().

Referenced by Query(), setExpand(), and updateEnquire().


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

Generated on Thu Oct 16 00:40:35 2008 for libept by  doxygen 1.5.6