[Xapian-discuss] Paging Results

Olly Betts olly at survex.com
Tue Aug 24 01:35:26 BST 2004


On Mon, Aug 23, 2004 at 08:18:04PM -0400, Mike Boone wrote:
> Today I wrote a more-or-less drop-in replacement for the MySQL search code
> using Xapian via PHP. The search is very fast, but the estimated matches
> changes when I requested 25  documents starting from 0 (53 matches), 25 (64
> matches), 50 (69 matches). How can I determine the exact number of matches
> so that I can link the pages properly?

This issue is discussed here:

http://article.gmane.org/gmane.comp.search.xapian.general/711

You're not using Omega so can't just set MINHITS.  But take a look at
the Omega code to see how MINHITS is implemented - it's pretty
straightforward.

Cheers,
    Olly



More information about the Xapian-discuss mailing list