[Xapian-discuss] Long query times
tech at dbx.co.uk
tech at dbx.co.uk
Fri Sep 30 10:33:58 BST 2005
I now remember why I didn't do this -what I want is all relevent CVs
returned to me in date order, rather than textual relevency, as the later
ones are of more interest than the earlier ones -even if the earlier ones
score more highly.
Is there a way to turn the relevence sorting off, so that it just did a
simple match? If I did would the results come back in date order?
Thanks again,
Jeremy
Original Message:
-----------------
From: Olly Betts olly at survex.com
Date: Thu, 29 Sep 2005 16:55:20 +0100
To: tech at dbx.co.uk, xapian-discuss at lists.xapian.org
Subject: Re: [Xapian-discuss] Long query times
> Just remembered, when I search I order the results by the modification
time
> that I store as a value -maybe it's the sort?
Ah, that'll be the issue. Values aren't stored in a particularly
efficient way considering how they actually get used nowadays (hindsight
is 20-20). Flint will fix that...
If you arrange to add documents in modification time order (and when
updating a document delete and add it rather than replacing it) then you
can just search ordered by reverse document id to get "sort by
modification time". This is how the gmane search does "Sort by Date".
It's not as fast as it could be (ideally we want to run the postlists
backwards in this case) but it'll be faster than sorting on a value is
ever likely to be.
Cheers,
Olly
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
More information about the Xapian-discuss
mailing list