|
xapian-core
2.0.0
|
#include <localsubmatch.h>
Collaboration diagram for LocalSubMatch:Private Member Functions | |
| LocalSubMatch & | operator= (const LocalSubMatch &)=delete |
| Don't allow assignment. More... | |
| LocalSubMatch (const LocalSubMatch &)=delete | |
| Don't allow copying. More... | |
Private Attributes | |
| Xapian::Weight::Internal * | total_stats = nullptr |
| The statistics for the collection. More... | |
| Xapian::Query | query |
| The query. More... | |
| Xapian::termcount | qlen |
| The query length (used by some weighting schemes). More... | |
| const Xapian::Database::Internal * | db |
| The (sub-)Database we're searching. More... | |
| const Xapian::Weight & | wt_factory |
| Weight object (used as a factory by calling create on it). More... | |
| Xapian::doccount | shard_index |
| 0-based index for the subdatabase. More... | |
Definition at line 43 of file localsubmatch.h.
|
privatedelete |
Don't allow copying.
|
inline |
Constructor.
Definition at line 70 of file localsubmatch.h.
| PostListAndEstimate LocalSubMatch::get_postlist | ( | PostListTree * | matcher, |
| Xapian::termcount * | total_subqs_ptr | ||
| ) |
Get PostList.
Definition at line 174 of file localsubmatch.cc.
References Xapian::Query::empty(), Xapian::Internal::QueryOptimiser::get_total_subqs(), Xapian::Query::internal, LOGCALL, Xapian::Internal::PostListAndEstimate::pl, and query().
|
inline |
Definition at line 159 of file localsubmatch.h.
References total_stats.
Referenced by Xapian::Internal::QueryOptimiser::get_stats().
| PostListAndEstimate LocalSubMatch::make_synonym_postlist | ( | PostListTree * | pltree, |
| PostListAndEstimate | or_pl, | ||
| double | factor, | ||
| const TermFreqs & | termfreqs | ||
| ) |
Convert a postlist into a synonym postlist.
Definition at line 209 of file localsubmatch.cc.
References Assert, Xapian::Internal::TermFreqs::collfreq, Xapian::Internal::PostListAndEstimate::est, LOGCALL, Xapian::Internal::PostListAndEstimate::pl, Xapian::Internal::TermFreqs::reltermfreq, RETURN, and Xapian::Internal::TermFreqs::termfreq.
Referenced by Xapian::Internal::QueryOptimiser::make_synonym_postlist().
| PostListAndEstimate LocalSubMatch::open_post_list | ( | const std::string & | term, |
| Xapian::termcount | wqf, | ||
| double | factor, | ||
| bool | need_positions, | ||
| bool | compound_weight, | ||
| Xapian::Internal::QueryOptimiser * | qopt, | ||
| bool | lazy_weight, | ||
| TermFreqs * | termfreqs | ||
| ) |
Definition at line 232 of file localsubmatch.cc.
References Assert, Xapian::Weight::clone(), Xapian::Internal::QueryOptimiser::db_size, Xapian::Internal::PostList::get_docid_range(), Xapian::Internal::QueryOptimiser::get_hint_postlist(), Xapian::Weight::get_maxpart(), Xapian::Internal::QueryOptimiser::get_no_estimates(), Xapian::Internal::PostList::get_termfreq(), Xapian::Weight::init_(), LOGCALL, LeafPostList::open_nearby_postlist(), Xapian::Internal::QueryOptimiser::own_hint_postlist(), RETURN, Xapian::Internal::QueryOptimiser::set_hint_postlist(), LeafPostList::set_term(), LeafPostList::set_termweight(), and term.
Referenced by Xapian::Internal::QueryOptimiser::open_lazy_post_list(), and Xapian::Internal::QueryOptimiser::open_post_list().
|
privatedelete |
Don't allow assignment.
|
inline |
Fetch and collate statistics.
Before we can calculate term weights we need to fetch statistics from each database involved and collate them.
| rset | The RSet for this shard. |
| stats | Weight::Internal object to add the statistics to. |
Definition at line 99 of file localsubmatch.h.
References Xapian::Weight::Internal::accumulate_stats(), and db.
|
inline |
Definition at line 135 of file localsubmatch.h.
References AssertEq, db, LeafPostList::get_collfreq(), Xapian::Database::Internal::get_freqs(), LeafPostList::get_term(), Xapian::Internal::PostList::get_termfreq(), Xapian::Weight::Internal::termfreqs, and total_stats.
Referenced by Xapian::Internal::QueryOptimiser::register_lazy_postlist_for_stats().
|
inline |
Definition at line 80 of file localsubmatch.h.
References Assert, db, Xapian::Database::Internal::get_doccount(), Xapian::Database::Internal::get_used_docid_range(), and EstimateOp::resolve().
|
inline |
Set the collated statistics.
These will be used when generating the PostList tree.
Definition at line 109 of file localsubmatch.h.
References total_stats.
|
inline |
Definition at line 155 of file localsubmatch.h.
References Xapian::Weight::get_sumpart_needs_wdf_(), and wt_factory.
Referenced by Xapian::Internal::QueryOptimiser::need_wdf_for_compound_weight().
|
private |
The (sub-)Database we're searching.
Definition at line 60 of file localsubmatch.h.
Referenced by prepare_match(), register_lazy_postlist_for_stats(), and resolve().
|
private |
The query length (used by some weighting schemes).
Definition at line 57 of file localsubmatch.h.
|
private |
The query.
Definition at line 54 of file localsubmatch.h.
|
private |
0-based index for the subdatabase.
Definition at line 66 of file localsubmatch.h.
|
private |
The statistics for the collection.
Definition at line 51 of file localsubmatch.h.
Referenced by get_stats(), register_lazy_postlist_for_stats(), and start_match().
|
private |
Weight object (used as a factory by calling create on it).
Definition at line 63 of file localsubmatch.h.
Referenced by weight_needs_wdf().