From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.117.16 with SMTP id p16cs454473agc; Tue, 13 Oct 2009 13:53:07 -0700 (PDT) Received: by 10.224.113.210 with SMTP id b18mr6369112qaq.354.1255467186368; Tue, 13 Oct 2009 13:53:06 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 15si6441349qyk.91.2009.10.13.13.53.06; Tue, 13 Oct 2009 13:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 041281218275; Tue, 13 Oct 2009 16:53:05 -0400 (EDT) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by rubyforge.org (Postfix) with ESMTP id 50FA31D7882B for ; Tue, 13 Oct 2009 16:51:47 -0400 (EDT) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MxoLL-0003Fb-N5 for sup-talk@rubyforge.org; Tue, 13 Oct 2009 22:51:39 +0200 Received: from 87.74.75.3 ([87.74.75.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2009 22:51:39 +0200 Received: from olly by 87.74.75.3 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Oct 2009 22:51:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: sup-talk@rubyforge.org From: Olly Betts Date: Tue, 13 Oct 2009 20:51:10 +0000 (UTC) Message-ID: References: <1253911610-sup-2052@yoom.home.cworth.org> <1255350472-sup-5679@masanjin.net> <1255388543-sup-7477@yoom.home.cworth.org> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 87.74.75.3 User-Agent: slrn/pre1.0.0-2 (Linux) Subject: Re: [sup-talk] [PATCH] Allow thread index view to sort oldest first X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org On 2009-10-12, Carl Worth wrote: > How do we get this behavior in xapian? I'm fine if the index is not > optimized for this. The current newest-first optimization is perfect > for actual searching, (as opposed to reading of new messages), and the > patches don't change that. @enquire.docid_order = Xapian::Enquire::DESCENDING This means that the docid order (which is used as the least significant ordering) is descending rather than ascending. In this case (I assume) we're using Xapian::BoolWeight so this is the only ordering. Cheers, Olly _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk