
Public Member Functions | |
| Term (const string &name_, termpos pos_) | |
| Term (const string &name_) | |
| Term (const string &name_, const PrefixInfo *prefix_info_) | |
| Term (termpos pos_) | |
| Term (State *state_, const string &name_, const PrefixInfo *prefix_info_, const string &unstemmed_, QueryParser::stem_strategy stem_=QueryParser::STEM_NONE, termpos pos_=0) | |
| Term (valueno slot, const string &a, const string &b) | |
| string | make_term (const string &prefix) const |
| void | need_positions () |
| termpos | get_termpos () const |
| filter_group_id | get_filter_group_id () const |
| Query * | as_wildcarded_query (State *state) const |
| Query * | as_partial_query (State *state_) const |
| Build a query for a term at the very end of the query string when FLAG_PARTIAL is in use. | |
| Query * | as_cjk_query () const |
| Build a query for a string of CJK characters. | |
| void | as_positional_cjk_term (Terms *terms) const |
| Handle a CJK character string in a positional context. | |
| Query | as_value_range_query () const |
| Value range query. | |
| Query | get_query () const |
| Query | get_query_with_synonyms () const |
| Query | get_query_with_auto_synonyms () const |
Public Attributes | |
| string | name |
| const PrefixInfo * | prefix_info |
| string | unstemmed |
| QueryParser::stem_strategy | stem |
| termpos | pos |
Private Attributes | |
| State * | state |
Generally an instance of this class carries term information, but it can be used for the start or end of a value range, with some operators (e.g. the distance in NEAR/3 or ADJ/3, etc).
Definition at line 158 of file queryparser_internal.cc.
| Term::Term | ( | const string & | name_, | |
| termpos | pos_ | |||
| ) | [inline] |
| Term::Term | ( | const string & | name_ | ) | [inline] |
Definition at line 169 of file queryparser_internal.cc.
| Term::Term | ( | const string & | name_, | |
| const PrefixInfo * | prefix_info_ | |||
| ) | [inline] |
Definition at line 170 of file queryparser_internal.cc.
| Term::Term | ( | termpos | pos_ | ) | [inline] |
Definition at line 173 of file queryparser_internal.cc.
| Term::Term | ( | State * | state_, | |
| const string & | name_, | |||
| const PrefixInfo * | prefix_info_, | |||
| const string & | unstemmed_, | |||
| QueryParser::stem_strategy | stem_ = QueryParser::STEM_NONE, |
|||
| termpos | pos_ = 0 | |||
| ) | [inline] |
Definition at line 174 of file queryparser_internal.cc.
| Term::Term | ( | valueno | slot, | |
| const string & | a, | |||
| const string & | b | |||
| ) | [inline] |
Definition at line 181 of file queryparser_internal.cc.
| Query * Term::as_cjk_query | ( | ) | const |
Build a query for a string of CJK characters.
Definition at line 454 of file queryparser_internal.cc.
References pos, prefix_info, and PrefixInfo::prefixes.
Build a query for a term at the very end of the query string when FLAG_PARTIAL is in use.
This query should match documents containing any terms which start with the characters specified, but should give a higher score to exact matches (since the user might have finished typing - we simply don't know).
Definition at line 425 of file queryparser_internal.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), State::get_database(), make_term(), pos, prefix_info, and PrefixInfo::prefixes.
| void Term::as_positional_cjk_term | ( | Terms * | terms | ) | const |
Handle a CJK character string in a positional context.
Definition at line 1620 of file queryparser_internal.cc.
References Terms::add_positional_term(), Xapian::Unicode::append_utf8(), pos, state, stem, Term(), and unstemmed.
| Query Term::as_value_range_query | ( | ) | const |
Definition at line 393 of file queryparser_internal.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), State::get_database(), State::get_max_wildcard_expansion(), pos, prefix_info, PrefixInfo::prefixes, Xapian::Internal::str(), and unstemmed.
| filter_group_id Term::get_filter_group_id | ( | ) | const [inline] |
| Query Term::get_query | ( | ) | const |
Definition at line 380 of file queryparser_internal.cc.
References Assert, make_term(), pos, prefix_info, and PrefixInfo::prefixes.
Referenced by get_query_with_auto_synonyms(), and get_query_with_synonyms().
| Query Term::get_query_with_auto_synonyms | ( | ) | const |
Definition at line 349 of file queryparser_internal.cc.
References State::flags, get_query(), get_query_with_synonyms(), and state.
| Query Term::get_query_with_synonyms | ( | ) | const |
Definition at line 310 of file queryparser_internal.cc.
References State::get_database(), get_query(), pos, prefix_info, prefix_needs_colon(), PrefixInfo::prefixes, state, stem, State::stem_term(), Xapian::Database::synonyms_begin(), and Xapian::Database::synonyms_end().
Referenced by get_query_with_auto_synonyms().
| termpos Term::get_termpos | ( | ) | const [inline] |
| string Term::make_term | ( | const string & | prefix | ) | const |
Definition at line 289 of file queryparser_internal.cc.
References State::add_to_unstem(), prefix_needs_colon(), state, stem, State::stem_term(), and unstemmed.
Referenced by Terms::as_opwindow_query(), as_partial_query(), and get_query().
| void Term::need_positions | ( | ) | [inline] |
Definition at line 186 of file queryparser_internal.cc.
References stem.
Referenced by Terms::add_positional_term().
| string Term::name |
Definition at line 162 of file queryparser_internal.cc.
Referenced by State::add_to_stoplist(), and State::is_stopword().
| termpos Term::pos |
Definition at line 166 of file queryparser_internal.cc.
Referenced by as_cjk_query(), Terms::as_opwindow_query(), as_partial_query(), as_positional_cjk_term(), as_value_range_query(), as_wildcarded_query(), get_query(), get_query_with_synonyms(), and get_termpos().
| const PrefixInfo* Term::prefix_info |
Definition at line 163 of file queryparser_internal.cc.
Referenced by Terms::add_positional_term(), as_cjk_query(), as_partial_query(), as_wildcarded_query(), get_filter_group_id(), get_query(), and get_query_with_synonyms().
State* Term::state [private] |
Definition at line 159 of file queryparser_internal.cc.
Referenced by as_positional_cjk_term(), get_query_with_auto_synonyms(), get_query_with_synonyms(), and make_term().
Definition at line 165 of file queryparser_internal.cc.
Referenced by as_positional_cjk_term(), get_query_with_synonyms(), make_term(), and need_positions().
| string Term::unstemmed |
Definition at line 164 of file queryparser_internal.cc.
Referenced by as_positional_cjk_term(), as_value_range_query(), as_wildcarded_query(), and make_term().