|
xapian-core
1.4.29
|
#include <queryoptimiser.h>
Collaboration diagram for QueryOptimiser:Public Member Functions | |
| QueryOptimiser (const Xapian::Database::Internal &db_, LocalSubMatch &localsubmatch_, MultiMatch *matcher_, Xapian::doccount shard_index_) | |
| ~QueryOptimiser () | |
| bool | full_db_has_positions () const |
| void | inc_total_subqs () |
| Xapian::termcount | get_total_subqs () const |
| void | set_total_subqs (Xapian::termcount n) |
| LeafPostList * | open_post_list (const std::string &term, Xapian::termcount wqf, double factor) |
| LeafPostList * | open_lazy_post_list (const std::string &term, Xapian::termcount wqf, double factor) |
| PostList * | make_synonym_postlist (PostList *pl, double factor, bool wdf_disjoint) |
| const LeafPostList * | get_hint_postlist () const |
| void | set_hint_postlist (LeafPostList *new_hint) |
| void | destroy_postlist (PostList *pl) |
Public Attributes | |
| bool | need_positions |
| bool | in_synonym |
| Xapian::doccount | shard_index |
| const Xapian::Database::Internal & | db |
| Xapian::doccount | db_size |
| MultiMatch * | matcher |
Private Member Functions | |
| void | operator= (const QueryOptimiser &) |
| Prevent assignment. More... | |
| QueryOptimiser (const QueryOptimiser &) | |
| Prevent copying. More... | |
Private Attributes | |
| LocalSubMatch & | localsubmatch |
| Xapian::termcount | total_subqs |
| How many weighted leaf subqueries there are. More... | |
| LeafPostList * | hint |
| bool | hint_owned |
Definition at line 32 of file queryoptimiser.h.
|
private |
Prevent copying.
|
inline |
Definition at line 65 of file queryoptimiser.h.
|
inline |
Definition at line 76 of file queryoptimiser.h.
References hint.
|
inline |
Definition at line 121 of file queryoptimiser.h.
Referenced by Xapian::Internal::Context::shrink().
|
inline |
Definition at line 80 of file queryoptimiser.h.
References MultiMatch::full_db_has_positions().
Referenced by Xapian::Internal::QueryWindowed::postlist_windowed().
|
inline |
Definition at line 111 of file queryoptimiser.h.
References hint.
Referenced by LocalSubMatch::open_post_list().
|
inline |
Definition at line 86 of file queryoptimiser.h.
References total_subqs.
Referenced by LocalSubMatch::get_postlist(), Xapian::Internal::QuerySynonym::postlist(), Xapian::Internal::QueryMax::postlist(), and Xapian::Internal::QueryWildcard::postlist().
|
inline |
Definition at line 84 of file queryoptimiser.h.
References total_subqs.
Referenced by Xapian::Internal::QueryTerm::postlist(), Xapian::Internal::QueryPostingSource::postlist(), Xapian::Internal::QueryValueRange::postlist(), Xapian::Internal::QueryValueLE::postlist(), Xapian::Internal::QueryValueGE::postlist(), and Xapian::Internal::QueryWildcard::postlist().
|
inline |
Definition at line 104 of file queryoptimiser.h.
References LocalSubMatch::make_synonym_postlist().
Referenced by Xapian::Internal::QueryBranch::do_synonym(), and Xapian::Internal::QueryWildcard::postlist().
|
inline |
Definition at line 97 of file queryoptimiser.h.
References LocalSubMatch::open_post_list().
Referenced by Xapian::Internal::QueryWildcard::postlist().
|
inline |
Definition at line 90 of file queryoptimiser.h.
References LocalSubMatch::open_post_list().
Referenced by Xapian::Internal::QueryTerm::postlist().
|
private |
Prevent assignment.
|
inline |
Definition at line 113 of file queryoptimiser.h.
References hint.
Referenced by LocalSubMatch::open_post_list().
|
inline |
Definition at line 88 of file queryoptimiser.h.
Referenced by Xapian::Internal::QuerySynonym::postlist(), Xapian::Internal::QueryMax::postlist(), and Xapian::Internal::QueryWildcard::postlist().
| const Xapian::Database::Internal& QueryOptimiser::db |
Definition at line 59 of file queryoptimiser.h.
Referenced by Xapian::Internal::QueryPostingSource::postlist(), Xapian::Internal::QueryValueRange::postlist(), Xapian::Internal::QueryValueLE::postlist(), Xapian::Internal::QueryValueGE::postlist(), Xapian::Internal::QueryWildcard::postlist(), and Xapian::Internal::QueryWindowed::postlist_windowed().
| Xapian::doccount QueryOptimiser::db_size |
Definition at line 61 of file queryoptimiser.h.
Referenced by LocalSubMatch::open_post_list(), Xapian::Internal::QueryValueRange::postlist(), Xapian::Internal::QueryValueLE::postlist(), Xapian::Internal::QueryValueGE::postlist(), Xapian::Internal::OrContext::postlist(), Xapian::Internal::QueryAndNot::postlist(), Xapian::Internal::XorContext::postlist(), Xapian::Internal::QueryAndMaybe::postlist(), Xapian::Internal::AndContext::postlist(), and Xapian::Internal::OrContext::postlist_max().
|
private |
Definition at line 48 of file queryoptimiser.h.
Referenced by get_hint_postlist(), set_hint_postlist(), and ~QueryOptimiser().
|
private |
Definition at line 50 of file queryoptimiser.h.
| bool QueryOptimiser::in_synonym |
Definition at line 55 of file queryoptimiser.h.
Referenced by Xapian::Internal::QueryBranch::do_synonym(), and Xapian::Internal::QueryWildcard::postlist().
|
private |
Definition at line 39 of file queryoptimiser.h.
| MultiMatch* QueryOptimiser::matcher |
Definition at line 63 of file queryoptimiser.h.
Referenced by Xapian::Internal::QueryPostingSource::postlist(), Xapian::Internal::OrContext::postlist(), Xapian::Internal::QueryAndNot::postlist(), Xapian::Internal::XorContext::postlist(), Xapian::Internal::QueryAndMaybe::postlist(), Xapian::Internal::AndContext::postlist(), and Xapian::Internal::OrContext::postlist_max().
| bool QueryOptimiser::need_positions |
Definition at line 53 of file queryoptimiser.h.
Referenced by Xapian::Internal::QueryWindowed::postlist_windowed().
| Xapian::doccount QueryOptimiser::shard_index |
Definition at line 57 of file queryoptimiser.h.
Referenced by Xapian::Internal::QueryPostingSource::postlist().
|
private |
How many weighted leaf subqueries there are.
Used for scaling percentages when the highest weighted document doesn't "match all terms".
Definition at line 46 of file queryoptimiser.h.
Referenced by get_total_subqs(), and inc_total_subqs().