]> git.notmuchmail.org Git - notmuch/commit
nmbug-status: Wrap query phrases in parentheses when and-ing together
authorW. Trevor King <wking@tremily.us>
Sat, 2 Jan 2016 06:07:42 +0000 (22:07 -0800)
committerDavid Bremner <david@tethera.net>
Thu, 24 Mar 2016 10:39:42 +0000 (07:39 -0300)
commit6c0b6c8e1c4a8ab139db3cadee26d05962c3ce2c
tree6a172046a623419fb740b703c4f0e3dac7880a6b
parent031ca3f1bdb5e9edb9fc21779149bdfcb554a83f
nmbug-status: Wrap query phrases in parentheses when and-ing together

For example:

  "query": ["tag:a", "tag:b or tag:c"]

is now converted to:

  ( tag:a ) and ( tag:b or tag:c )

instead of the old:

  tag:a and tag:b or tag:c

This helps us avoid confusion due to Xapian's higher-precedence AND
[1], where the old query would be interpreted as:

  ( tag:a and tag:b ) or tag:c

[1]: http://xapian.org/docs/queryparser.html
NEWS
devel/nmbug/nmbug-status