[Xapian-discuss] how does work get_collapse_count?

Olly Betts olly at survex.com
Tue Feb 27 14:00:51 GMT 2007


On Tue, Feb 27, 2007 at 12:29:25PM +0100, Felix Antonius Wilhelm Ostmann wrote:
> Is it possible to get the exact count of matches?

The collapse count is the number of matching entries which the matcher
saw.  If you set the check_at_least parameter of Enquire::get_mset() to
at least database.doc_count(), then the matcher will check all documents
in the database, and the collapse counts will be exact.  However,
matching will be slower because you're preventing it from terminating
early.

Cheers,
    Olly



More information about the Xapian-discuss mailing list