]> git.notmuchmail.org Git - notmuch/commitdiff
lib: only trigger phrase processing for regexp fields when needed
authorDavid Bremner <david@tethera.net>
Sat, 18 Mar 2017 02:23:51 +0000 (23:23 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 24 Mar 2017 12:24:13 +0000 (09:24 -0300)
The argument is that if the string passed to the field processor has
no spaces, then the added quotes won't have any benefit except for
disabling wildcards. But disabling wildcards doesn't seem very useful
in the normal Xapian query parser, since they're stripped before
generating terms anyway. It does mean that the query 'from:"foo*"' will
not be precisely equivalent to 'from:foo' as it is for the non
field-processor version.


No differences found