doc: notmuch help search-terms, boolean operators
Carl Worth
cworth at cworth.org
Tue Apr 26 16:01:17 PDT 2011
On Wed, 27 Apr 2011 00:24:38 +0200, Florian Friesdorf <flo at 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 at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110426/97ad99a3/attachment.pgp>
More information about the notmuch
mailing list