{
"query":{
"constant_score":{
"filter":{
"bool":{
"should":{
"terms":{
"field_a":[
"value1", "value2"
]
}
},
"must":{
"term":{
"field_b":"value"
}
}
}
}
}
}
}
This search was supposed to return the results containing value1 or value2 in field_a and value in field_b.
So similar to this MySQL query:
SELECT * FROM table WHERE field_a IN ('value1', 'value2') AND field_b = value
After the upgrade it will return all the results where field_b = value. The first part of the query is completely ignored.
Any suggestions for a fix?