Henry
2008-Dec-06 16:56 UTC
[Xapian-discuss] Obtaining actual match count if using set_collapse_key()
Greets, Is it possible to obtain the actual match count if you're using set_collapse_key()? ie, the total count *before* the collapsing occurs (without using get_mset()). Alternatively, will MSet::get_matches_estimated() return the true - pre-collapse - count, or will it also be affected by collapsing? Thanks Henry
Olly Betts
2008-Dec-08 00:00 UTC
[Xapian-discuss] Obtaining actual match count if using set_collapse_key()
On Sat, Dec 06, 2008 at 06:56:16PM +0200, Henry wrote:> Is it possible to obtain the actual match count if you're using > set_collapse_key()? ie, the total count *before* the collapsing > occurs (without using get_mset()).http://trac.xapian.org/wiki/FAQ/MoreAccurateEstimates> Alternatively, will MSet::get_matches_estimated() return the true - > pre-collapse - count, or will it also be affected by collapsing?Hmm, the API documentation is rather vague isn't it? It's affected by collapsing - it's an estimate of the size of the MSet if you asked for infinity documents. Cheers, Olly