aboutsummaryrefslogtreecommitdiff
path: root/test/T650-regexp-query.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-03-17 23:23:51 -0300
committerDavid Bremner <david@tethera.net>2017-03-24 09:24:13 -0300
commit38a56b98f9b282decc5edbe1da9717e3b2bdb6b2 (patch)
tree10e566f3d8688f844b8f173cf19376c4e8cfef0f /test/T650-regexp-query.sh
parent497b83780ee50e2cd37f352caa3bd2b6c936dfab (diff)
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.
Diffstat (limited to 'test/T650-regexp-query.sh')
-rwxr-xr-xtest/T650-regexp-query.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh
index 1db6a76b..61739e87 100755
--- a/test/T650-regexp-query.sh
+++ b/test/T650-regexp-query.sh
@@ -12,12 +12,10 @@ fi
notmuch search --output=messages from:cworth > cworth.msg-ids
test_begin_subtest "xapian wildcard search for from:"
-test_subtest_known_broken
notmuch search --output=messages 'from:cwo*' > OUTPUT
test_expect_equal_file cworth.msg-ids OUTPUT
test_begin_subtest "xapian wildcard search for subject:"
-test_subtest_known_broken
test_expect_equal $(notmuch count 'subject:count*') 1
test_begin_subtest "regexp from search, case sensitive"