32 bool decreasing_relevance_,
35 decreasing_relevance(decreasing_relevance_),
36 matchspies(matchspies_)
38 LOGCALL_CTOR(MATCH,
"RemoteSubMatch", db_ | decreasing_relevance_ | matchspies_);
45 LOGCALL(MATCH,
bool,
"RemoteSubMatch::prepare_match", nowait | total_stats);
48 total_stats += remote_stats;
58 LOGCALL_VOID(MATCH,
"RemoteSubMatch::start_match", first | maxitems | check_at_least | total_stats);
67 LOGCALL(MATCH,
PostList*,
"RemoteSubMatch::get_postlist", matcher | total_subqs_ptr | total_stats);
76 (void)total_subqs_ptr;
Abstract base class for postlists.
bool prepare_match(bool nowait, Xapian::Weight::Internal &total_stats)
Fetch and collate statistics.
Xapian::Internal::intrusive_ptr< Internal > internal
Class representing a list of search results.
RemoteDatabase is the baseclass for remote database implementations.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
double percent_factor
The factor to use to convert weights to percentages.
RemoteSubMatch(const RemoteSubMatch &)
Don't allow copying.
PostList * get_postlist(MultiMatch *matcher, Xapian::termcount *total_subqs_ptr, Xapian::Weight::Internal &total_stats)
Get PostList.
RemoteDatabase * db
The remote database.
void merge(const Weight::Internal &o)
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
PostList returning entries from an MSet.
SubMatch class for a remote database.
Xapian::Weight::Internal class, holding database and term statistics.
void get_mset(Xapian::MSet &mset, const vector< Xapian::Internal::opt_intrusive_ptr< Xapian::MatchSpy >> &matchspies)
Get the MSet from the remote server.
Class to hold statistics for a given collection.
void send_global_stats(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, const Xapian::Weight::Internal &stats)
Send the global stats to the remote server.
const vector< Xapian::Internal::opt_intrusive_ptr< Xapian::MatchSpy > > & matchspies
The matchspies to use.
bool get_remote_stats(bool nowait, Xapian::Weight::Internal &out)
Get the stats from the remote server.
PostList returning entries from an MSet.
RemoteDatabase is the baseclass for remote database implementations.
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
bool decreasing_relevance
Is the sort order such the relevance decreases down the MSet?
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
void start_match(Xapian::doccount first, Xapian::doccount maxitems, Xapian::doccount check_at_least, Xapian::Weight::Internal &total_stats)
Start the match.
Xapian::doccount uncollapsed_upper_bound
uncollapsed_upper_bound from the remote MSet.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)