From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D25B96DE0270 for ; Fri, 26 Aug 2016 03:21:05 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.007 X-Spam-Level: X-Spam-Status: No, score=-0.007 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6bf-NUfUVZdS for ; Fri, 26 Aug 2016 03:21:04 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id AB3226DE01CE for ; Fri, 26 Aug 2016 03:21:04 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1bdEFu-0000xC-83; Fri, 26 Aug 2016 06:20:58 -0400 Received: (nullmailer pid 13823 invoked by uid 1000); Fri, 26 Aug 2016 10:20:58 -0000 From: David Bremner To: Gaute Hope , notmuch@notmuchmail.org Subject: Re: sort by relevance? In-Reply-To: <1472194472.0edhy88rag.astroid@strange> References: <1472194472.0edhy88rag.astroid@strange> User-Agent: Notmuch/0.22.1 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 26 Aug 2016 07:20:58 -0300 Message-ID: <87vaynomph.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Fri, 26 Aug 2016 10:21:06 -0000 Gaute Hope writes: > while reading a bit about Xapian with regards to [0] I came across > sorting by relevance? Is this currently possible? Especially in OR > searches with many terms I think this would be very useful. Depends on your definition of possible. It's not supported by the current code. I think it wouldn't be too hard to add, see notmuch_query_set_sort and _notmuch_query_search_documents (query.cc). d