#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 |
typedef std::set< std::string > ept::core::xapian::Query::Terms |
ept::core::xapian::Query::Query | ( | Xapian::Database & | e | ) | [inline] |
void ept::core::xapian::Query::addSecondaryTerm | ( | const std::string & | term, | |
bool | partial = false | |||
) | [inline] |
void ept::core::xapian::Query::addTerms | ( | const Terms & | t, | |
bool | exclude = false | |||
) | [inline] |
void ept::core::xapian::Query::addTerms | ( | std::string | t, | |
bool | partial = false , |
|||
bool | exclude = false | |||
) | [inline] |
References m_db, m_exclude, m_include, and tokenizeQuery().
Referenced by ept::core::xapian::Source::partialQuery(), and ept::core::xapian::Source::query().
void ept::core::xapian::Query::expand | ( | Out | o | ) | const [inline] |
wibble::Tokenizer ept::core::xapian::Query::queryTokenizer | ( | std::string | q | ) | const [inline] |
Referenced by tokenizeQuery().
std::map< std::string, int > ept::core::xapian::Query::relevantTags | ( | int | n = 30 |
) | [inline] |
References m_enq, and updateEnquire().
List ept::core::xapian::Query::results | ( | ) | [inline] |
References m_enq, and updateEnquire().
Referenced by TestXapian::list(), and TestXapian::listCount().
void ept::core::xapian::Query::setExpand | ( | bool | e | ) | [inline] |
void ept::core::xapian::Query::setQualityCutoff | ( | int | c | ) | [inline] |
void ept::core::xapian::Query::tokenizeQuery | ( | std::string | q, | |
Out | o | |||
) | const [inline] |
void ept::core::xapian::Query::updateEnquire | ( | ) | [inline] |
References expand(), m_enq, m_exclude, m_expand, m_include, and m_secondary.
Referenced by TestXapian::enquire(), relevantTags(), and results().
Referenced by Query(), and setQualityCutoff().
Xapian::Database* ept::core::xapian::Query::m_db |
Referenced by addSecondaryTerm(), and addTerms().
Xapian::Enquire ept::core::xapian::Query::m_enq |
Referenced by TestXapian::enquire(), expand(), TestXapian::list(), TestXapian::listCount(), relevantTags(), results(), and updateEnquire().
Referenced by addTerms(), and updateEnquire().
Referenced by Query(), setExpand(), and updateEnquire().
Referenced by addSecondaryTerm(), addTerms(), and updateEnquire().
Referenced by addSecondaryTerm(), and updateEnquire().
Xapian::Stem ept::core::xapian::Query::m_stem |
Referenced by tokenizeQuery().