]> git.cworth.org Git - notmuch/commitdiff
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)
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


No differences found