Implemented issue #1090 - Switch elasticsearch standard operator from OR to AND.

This commit is contained in:
Martin Edenhofer 2017-05-15 18:20:39 +02:00
parent 672159a2bf
commit 0d4e391ad9

View file

@ -206,7 +206,8 @@ return search result
# real search condition # real search condition
condition = { condition = {
'query_string' => { 'query_string' => {
'query' => query 'query' => query,
'default_operator' => 'AND',
} }
} }
data['query']['bool']['must'].push condition data['query']['bool']['must'].push condition