Currently we are using Elastic 2.3.x and migrating to 6.8.x and noticed that one of our queries is no longer returning data. The data between the environment versions is 100% the same. We have a job that writes the same to both environments.
The query in question:
{
"query": {
"constant_score": {
"filter": {
"bool": {
"should": [
{
"term": {
"word": "hello"
}
}
],
"must": [
{
"range": {
"year_term": {
"gt": 0
}
}
}
]
}
}
}
},
"sort": {
"year_term": {
"order": "asc"
}
}
}
Would appreciate if someone can easily spot the issue