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 0E679429E44 for ; Tue, 26 Apr 2011 16:29:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable 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 XjR9IlJW1+01 for ; Tue, 26 Apr 2011 16:29:16 -0700 (PDT) Received: from atreus.tartarus.org (atreus.tartarus.org [80.252.125.10]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C11D3429E38 for ; Tue, 26 Apr 2011 16:29:16 -0700 (PDT) Received: from olly by atreus.tartarus.org with local (Exim 4.69) (envelope-from ) id 1QErgv-0003Ah-9I; Wed, 27 Apr 2011 00:29:13 +0100 Date: Wed, 27 Apr 2011 00:29:13 +0100 From: Olly Betts To: Carl Worth Subject: Re: doc: notmuch help search-terms, boolean operators Message-ID: <20110426232913.GM24964@survex.com> References: <87fwp4tzvd.fsf@eve.chaoflow.net> <87d3k81ute.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d3k81ute.fsf@yoom.home.cworth.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: notmuch@notmuchmail.org 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: Tue, 26 Apr 2011 23:29:17 -0000 On Tue, Apr 26, 2011 at 04:01:17PM -0700, Carl Worth wrote: > On Wed, 27 Apr 2011 00:24:38 +0200, Florian Friesdorf wrote: > > Through playing with `notmuch tag` and `notmuch search > > --output=messages` I found: > > > > Complete list of boolean operators in order of precedence: > > - NOT > > - AND > > - XOR > > - OR > > > > Is this correct? If yes, I would extend the manpage accordingly. > > Currently, notmuch doesn't implement this behavior but relies on > Xapian's query parser to do so. As such, I'd really prefer to see > Xapian's documentation augmented here before we start documenting > any particular behavior in notmuch. > > Olly, is the above list of operators complete and in the correct order > of precendence? Close, but actually AND and NOT have equal precedence. Also, NEAR and ADJ bind tighter than AND or NOT. And '+' and '-' tightest of all. I'll try to make sure this gets documented. Cheers, Olly