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)
commit38a56b98f9b282decc5edbe1da9717e3b2bdb6b2
tree10e566f3d8688f844b8f173cf19376c4e8cfef0f
parent497b83780ee50e2cd37f352caa3bd2b6c936dfab
lib: only trigger phrase processing for regexp fields when needed

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.
lib/regexp-fields.cc
test/T650-regexp-query.sh