[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] [PATCH] Allow thread index view to sort oldest first



On 2009-10-12, Carl Worth <cworth@cworth.org> 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