unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
To: Jason White <jason@jasonjgw.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH] allow to not sort the search results
Date: Wed, 14 Apr 2010 09:51:11 +0200	[thread overview]
Message-ID: <87hbnebhg0.fsf@SSpaeth.de> (raw)
In-Reply-To: <20100414065525.GA11770@jdc.jasonjgw.net>

On 2010-04-14, Jason White wrote:
> > Also add a --sort=unsorted command line option to notmuch search to test this.
> 
> Does this provide relevance-ranked search results? I think relevance ranking
> is the Xapian default if a sort order isn't specified. 

Yes, by default it is using sort_by_relevance, so "unsorted" implies
just that. (in fact, a previous incarnation of this patch called it
--sort=relevance)

However, given that many of our terms, are boolean, relevance only
really comes into play when including terms within the body of a
message. (and *I* have not found the relevance sorting to be much useful
yet when I cared about some sort order, but that might just be me).
 
> It would be useful to be able to obtain a relevance-ranked list of messages or
> threads that satisfy a query.

I would be happy to have it called --sort=relevance too, the unsorted
points out potential performance improvements a bit better, IMHO
(although they seem to be really small with a warm cache).

Sebastian

  reply	other threads:[~2010-04-14  7:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14  6:30 [PATCH] allow to not sort the search results Sebastian Spaeth
2010-04-14  6:55 ` Jason White
2010-04-14  7:51   ` Sebastian Spaeth [this message]
2010-04-15 12:54     ` Olly Betts
2010-04-16  6:37       ` Sebastian Spaeth
2010-04-16  6:38         ` [PATCH 1/3] query.cc: allow to return query results unsorted Sebastian Spaeth
2010-04-16  6:38         ` [PATCH 2/3] notmuch-search: Introduce --sort=unsorted Sebastian Spaeth
2010-04-16  6:38         ` [PATCH 3/3] notmuch-tag: don't sort messages before applying tag changes Sebastian Spaeth
2010-04-16  6:58         ` [PATCH] allow to not sort the search results Olly Betts
2010-04-18 13:56         ` Sebastian Spaeth
2010-04-21 23:09           ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbnebhg0.fsf@SSpaeth.de \
    --to=sebastian@sspaeth.de \
    --cc=jason@jasonjgw.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).