Commit 32fc3ddb authored by Kristoffer Moe's avatar Kristoffer Moe
Browse files

catalinker: enclose whole search string with ampersand in quotes DEICH-739

parent 648ed9fa
......@@ -84,7 +84,7 @@
} else {
query.query = {
simple_query_string: {
query: searchString,
query: searchString.replace(/\!/g, '\\!').replace(/[^]*&[^]*/g, '"$&"'),
default_operator: 'and',
fields: fields[indexType]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment