Implemented issue #1090 - Switch elasticsearch standard operator from OR to AND.
This commit is contained in:
parent
672159a2bf
commit
0d4e391ad9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue