22 #ifndef XAPIAN_INCLUDED_LOCALSUBMATCH_H 23 #define XAPIAN_INCLUDED_LOCALSUBMATCH_H 74 : stats(NULL), query(query_), qlen(qlen_), db(db_), rset(rset_),
75 wt_factory(wt_factory_),
76 shard_index(shard_index_)
78 LOGCALL_CTOR(MATCH,
"LocalSubMatch", db_ | query_ | qlen_ | rset_ | wt_factory_);
Abstract base class for postlists.
Xapian::termcount qlen
The query length (used by some weighting schemes).
const Xapian::Database::Internal * db
The (sub-)Database we're searching.
Base class for databases.
Abstract base class for leaf postlists.
Abstract base class for leaf postlists.
bool prepare_match(bool nowait, Xapian::Weight::Internal &total_stats)
Fetch and collate statistics.
LocalSubMatch(const LocalSubMatch &)
Don't allow copying.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
void operator=(const LocalSubMatch &)
Don't allow assignment.
const Xapian::Weight * wt_factory
Weight object (used as a factory by calling create on it).
PostList * get_postlist(MultiMatch *matcher, Xapian::termcount *total_subqs_ptr, Xapian::Weight::Internal &total_stats)
Get PostList.
base class for sub-matchers
Class to hold statistics for a given collection.
Xapian::RSet rset
The RSet (used to calculate R and r).
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
Xapian::Query query
The query.
LocalSubMatch(const Xapian::Database::Internal *db_, const Xapian::Query &query_, Xapian::termcount qlen_, const Xapian::RSet &rset_, const Xapian::Weight *wt_factory_, Xapian::doccount shard_index_)
Constructor.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Xapian::doccount shard_index
0-based index for the subdatabase.
LeafPostList * open_post_list(const std::string &term, Xapian::termcount wqf, double factor, bool need_positions, bool in_synonym, QueryOptimiser *qopt, bool lazy_weight)
Xapian::Weight::Internal * stats
The statistics for the collection.
PostList * make_synonym_postlist(PostList *or_pl, MultiMatch *matcher, double factor, bool wdf_disjoint)
Convert a postlist into a synonym postlist.
Class representing a query.
void start_match(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, Xapian::Weight::Internal &total_stats)
Start the match.
Abstract base class for weighting schemes.