We have upgraded our ES from ES-2.3 to ES-6.4. So we have done reindexing of all our indexes.
Now while running the query to new elasticsearch, we got performance with such queries :
{
"_source": false,
"query": {
"bool": {
"filter": {
"bool": {
"must": [
{
"range": {
"visitTime": {
"gte": "2018-07-18T18:30:00"
}
}
}
],
"must_not": [
{
"exists": {
"field": "source"
}
}
]
}
}
}
}
}
So my question is why ES query taking much time in build_scorer ???? When running the same query in ES 2.3, take much less time.