Re: doc: notmuch help search-terms, boolean operators

Subject: Re: doc: notmuch help search-terms, boolean operators

Date: Tue, 26 Apr 2011 16:01:17 -0700

To: Florian Friesdorf, notmuch@notmuchmail.org

Cc: Olly Betts

From: Carl Worth


On Wed, 27 Apr 2011 00:24:38 +0200, Florian Friesdorf <flo@chaoflow.net> wrote:
> I would like to replace the "etc" with a full list and document the
> operator precedence.

Yes, that's a fine idea.

> In lib/notmuch.h for notmuch_query_create I found a pointer to xapian
> docs [2], which states that AND takes precedence over OR, but nothing
> for NOT and XOR.
> 
> 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?

-Carl

-- 
carl.d.worth@intel.com
part-000.sig (application/pgp-signature)

Thread: