Proposed New sort API
William Casarin
jb55 at jb55.com
Sat Oct 20 10:15:30 PDT 2018
David Bremner <david at tethera.net> writes:
> William Casarin <jb55 at jb55.com> writes:
>
>> Another thought I had that I wanted to throw out there for
>> consideration. It would be nice to be able to sort by "popular" threads,
>> aka sort by the number of messages in each thread. Not sure if this is
>> an easy thing to do at the query level?
>
> I don't see how to manage it as a xapian query. In the current database
> schema xapian doesn't really know about threads, except that messages
> know what thread they belong to.
I noticed notmuch-search shows the number of messages in the thread,
perhaps you could just sort on that value when returning the results?
More information about the notmuch
mailing list