Collaboration diagram for Term:

Public Member Functions | |
| Term (const string &name_, termpos pos_) | |
| Term (const string &name_) | |
| Term (const string &name_, const list< string > &prefixes_) | |
| Term (termpos pos_) | |
| Term (State *state_, const string &name_, const list< string > &prefixes_, const string &unstemmed_, QueryParser::stem_strategy stem_=QueryParser::STEM_NONE, termpos pos_=0) | |
| std::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 |
| Query | get_query () const |
| Query | get_query_with_synonyms () const |
| Query | get_query_with_auto_synonyms () const |
Public Attributes | |
| string | name |
| list< string > | prefixes |
| 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 135 of file queryparser_internal.cc.
| Term::Term | ( | const string & | name_, | |
| termpos | pos_ | |||
| ) | [inline] |
Definition at line 145 of file queryparser_internal.cc.
| Term::Term | ( | const string & | name_ | ) | [inline] |
Definition at line 146 of file queryparser_internal.cc.
| Term::Term | ( | const string & | name_, | |
| const list< string > & | prefixes_ | |||
| ) | [inline] |
Definition at line 147 of file queryparser_internal.cc.
| Term::Term | ( | termpos | pos_ | ) | [inline] |
Definition at line 149 of file queryparser_internal.cc.
| Term::Term | ( | State * | state_, | |
| const string & | name_, | |||
| const list< string > & | prefixes_, | |||
| const string & | unstemmed_, | |||
| QueryParser::stem_strategy | stem_ = QueryParser::STEM_NONE, |
|||
| termpos | pos_ = 0 | |||
| ) | [inline] |
Definition at line 150 of file queryparser_internal.cc.
| string Term::make_term | ( | const string & | prefix | ) | const |
Definition at line 238 of file queryparser_internal.cc.
References prefix_needs_colon(), stem, and unstemmed.
Referenced by as_partial_query(), and get_query().
| void Term::need_positions | ( | ) | [inline] |
Definition at line 159 of file queryparser_internal.cc.
References stem.
Referenced by TermList::add_positional_term().
| termpos Term::get_termpos | ( | ) | const [inline] |
| filter_group_id Term::get_filter_group_id | ( | ) | const [inline] |
Definition at line 339 of file queryparser_internal.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), State::get_database(), pos, and prefixes.
Definition at line 358 of file queryparser_internal.cc.
References Xapian::Database::allterms_begin(), Xapian::Database::allterms_end(), State::get_database(), make_term(), pos, and prefixes.
| Query Term::get_query | ( | ) | const |
Definition at line 327 of file queryparser_internal.cc.
References Assert, make_term(), pos, and prefixes.
Referenced by get_query_with_auto_synonyms(), and get_query_with_synonyms().
| Query Term::get_query_with_synonyms | ( | ) | const |
Definition at line 258 of file queryparser_internal.cc.
References get_query(), pos, prefix_needs_colon(), prefixes, stem, Xapian::Database::synonyms_begin(), and Xapian::Database::synonyms_end().
Referenced by get_query_with_auto_synonyms().
| Query Term::get_query_with_auto_synonyms | ( | ) | const |
Definition at line 296 of file queryparser_internal.cc.
References get_query(), and get_query_with_synonyms().
State* Term::state [private] |
Definition at line 136 of file queryparser_internal.cc.
| string Term::name |
Definition at line 139 of file queryparser_internal.cc.
Referenced by State::add_to_stoplist(), State::is_stopword(), and State::value_range().
| list<string> Term::prefixes |
Definition at line 140 of file queryparser_internal.cc.
Referenced by TermList::add_positional_term(), as_partial_query(), as_wildcarded_query(), get_filter_group_id(), get_query(), and get_query_with_synonyms().
| string Term::unstemmed |
Definition at line 142 of file queryparser_internal.cc.
Referenced by get_query_with_synonyms(), make_term(), and need_positions().
| termpos Term::pos |
Definition at line 143 of file queryparser_internal.cc.
Referenced by as_partial_query(), as_wildcarded_query(), get_query(), get_query_with_synonyms(), and get_termpos().