[Xapian-discuss] Global number of matches

Olly Betts olly at survex.com
Thu Aug 7 14:47:10 BST 2014


On Thu, Aug 07, 2014 at 03:02:59PM +0200, Wilm Schumacher wrote:
> is there a way to get the number of all possible matches for a specific
> query?
> 
> Some api call like
> Xapian::doccount Xapian::Enquire::get_number_of_matches();

Xapian::MSet::get_matches_estimated()

As the name suggests, the result is an estimate - for a discussion of
this, see this FAQ entry:

http://trac.xapian.org/wiki/FAQ/MoreAccurateEstimates

Cheers,
    Olly



More information about the Xapian-discuss mailing list