From: Florian Friesdorf <flo@chaoflow.net>
To: notmuch@notmuchmail.org
Subject: doc: notmuch help search-terms, boolean operators
Date: Wed, 27 Apr 2011 00:24:38 +0200 [thread overview]
Message-ID: <87fwp4tzvd.fsf@eve.chaoflow.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
`notmuch help search-terms` currently states: "In addition to
individual terms, multiple terms can be combined with Boolean operators
("and", "or", "not", etc.).".
I would like to replace the "etc" with a full list and document the
operator precedence.
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.
[2] http://xapian.org/docs/queryparser.html
--
Florian Friesdorf <flo@chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo@chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next reply other threads:[~2011-04-26 22:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-26 22:24 Florian Friesdorf [this message]
2011-04-26 23:01 ` doc: notmuch help search-terms, boolean operators Carl Worth
2011-04-26 23:11 ` Jameson Graef Rollins
2011-04-26 23:29 ` Olly Betts
2011-04-26 23:55 ` Austin Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwp4tzvd.fsf@eve.chaoflow.net \
--to=flo@chaoflow.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).