[Xapian-discuss] Sort by docid
marcot at tabini.ca
Mon Jul 4 16:16:54 BST 2005
On 6/29/05 1:02 PM, "Olly Betts" <olly at survex.com> wrote:
> On Wed, Jun 29, 2005 at 12:14:34PM -0400, Marco Tabini wrote:
> The answer is to use Enquire::set_docid_order to set BoolWeight as the
> weighting scheme. This is suggested in the API docs for set_docid_order
> but it could be more explicit:
> Note: If you add documents in strict date order, then a boolean search
> with set_docid_order(Xapian::Enquire::DESCENDING) is a very efficient
> way to perform "sort by date, newest first".
Thanks. I missed the bit about how to set the search to Boolean mode :)
President & CEO
Marco Tabini & Associates, Inc.
28 Bombay Ave.
Toronto, ON M3H 1B7
Phone: +1 (416) 630-6202
Fax: +1 (416) 630-5057
More information about the Xapian-discuss