[Xapian-tickets] [Xapian] #784: Have a public API for merging MSets
Xapian
nobody at xapian.org
Wed May 1 13:15:29 BST 2019
#784: Have a public API for merging MSets
-------------------------+-------------------------
Reporter: Kronuz | Owner: olly
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+-------------------------
Comment (by Kronuz):
In the IRC chat, olly asked/suggested:
> Not sure why a method for stats is needed -
> wouldn't the public api be a static method something like:[[BR]]
> `template<ITOR> Xapian::MSet merge(ITOR begin, ITOR end)`?[[BR]]
> which should take care of any merging of stats etc that's needed
[[BR]]
To clarify, you mean that to be a static method of MSet? of what type
would that `ITOR` be? and where/how would it get the stats?
The stats method would be to get the stats for a query. I thought merging
was a two-seteps process:
1. Get stats for a query from each involved database and merge as "global"
stats; and
2. Get query results (queries using the global stats) and merge results
into the merged MSet
--
Ticket URL: <https://trac.xapian.org/ticket/784#comment:1>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list