libept  0.5.25
Public Types | Public Member Functions | Public Attributes | List of all members
ept::core::xapian::Query Struct Reference

#include <xapian.h>

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

Member Function Documentation

void ept::core::xapian::Query::addSecondaryTerm ( const std::string &  term,
bool  partial = false 
)
inline
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
template<typename Out >
void ept::core::xapian::Query::expand ( Out  o) const
inline
wibble::Tokenizer ept::core::xapian::Query::queryTokenizer ( std::string  q) const
inline
std::map< std::string, int > ept::core::xapian::Query::relevantTags ( int  n = 30)
inline
List ept::core::xapian::Query::results ( )
inline
void ept::core::xapian::Query::setExpand ( bool  e)
inline
void ept::core::xapian::Query::setQualityCutoff ( int  c)
inline
template<typename Out >
void ept::core::xapian::Query::tokenizeQuery ( std::string  q,
Out  o 
) const
inline
void ept::core::xapian::Query::updateEnquire ( )
inline

Referenced by TestXapian::enquire().

Member Data Documentation

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

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