libept
0.5.25
|
#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] |
References m_db, m_include, and m_secondary.
Referenced by ept::core::xapian::Source::query().
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::addTerms | ( | const Terms & | t, |
bool | exclude = false |
||
) | [inline] |
void ept::core::xapian::Query::expand | ( | Out | o | ) | const [inline] |
References m_enq.
Referenced by updateEnquire().
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().
void ept::core::xapian::Query::setExpand | ( | bool | e | ) | [inline] |
References m_expand.
Referenced by ept::core::xapian::Source::query().
void ept::core::xapian::Query::setQualityCutoff | ( | int | c | ) | [inline] |
References m_cutoff.
Referenced by ept::core::xapian::Source::query().
void ept::core::xapian::Query::tokenizeQuery | ( | std::string | q, |
Out | o | ||
) | const [inline] |
References m_stem, and queryTokenizer().
Referenced by addTerms().
void ept::core::xapian::Query::updateEnquire | ( | ) | [inline] |
References expand(), m_enq, m_exclude, m_expand, m_include, and m_secondary.
Referenced by 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 expand(), 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().