[Xapian-discuss] searching and sorting by date

richard at lemurconsulting.com richard at lemurconsulting.com
Wed Mar 22 12:08:25 GMT 2006


On Wed, Mar 22, 2006 at 11:49:40AM +0000, James Aylett wrote:
> Hi, Michel. Olly is away right now; others may be able to back me up
> here, but my understanding is that set_sort_by_value() will give you
> the first N (documents that match the query sorted by the value). This
> is slower than not sorting for precisely this reason.

That is correct.

Xapian doesn't currently implement the alternative you described: "get the N
highest results and then sort them by value".  Of course, this is easy enough
to do outside Xapian.

-- 
Richard



More information about the Xapian-discuss mailing list