Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0A28F4196F2 for ; Wed, 14 Apr 2010 00:51:16 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_40=-0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8rCDXRgkYvvJ for ; Wed, 14 Apr 2010 00:51:15 -0700 (PDT) Received: from homiemail-a19.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 64F44431FC1 for ; Wed, 14 Apr 2010 00:51:15 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id 840A3604076; Wed, 14 Apr 2010 00:51:13 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Wed, 14 Apr 2010 09:51:11 +0200 From: "Sebastian Spaeth" To: Jason White , notmuch@notmuchmail.org Subject: Re: [PATCH] allow to not sort the search results In-Reply-To: <20100414065525.GA11770@jdc.jasonjgw.net> References: <1271226655-5672-1-git-send-email-Sebastian@SSpaeth.de> <20100414065525.GA11770@jdc.jasonjgw.net> Date: Wed, 14 Apr 2010 09:51:11 +0200 Message-ID: <87hbnebhg0.fsf@SSpaeth.de> User-Agent: notmuch version 0.1-107-g553feae (Emacs 23.1.1/x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 07:51:16 -0000 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