Hi All,
I am using below query for one of the our use cases & we are observing weird thing on total hits count - means assume I hit the below request first time then total hits in result would be 64 and if I hit second time then it is 47, again if I hit third time then result is 64 & fourth time it would be 47.. and so on. So can anyone please help me how can we solve this issue.
{
"query": {
"bool": {
"filter": [
{
"match_phrase_prefix": {
"field1": {
"query": "D"
}
}
},
{
"match_phrase_prefix": {
"field2": {
"query": "66"
}
}
}
]
}
},
"aggs": {
"result": {
"terms": {
"field": "field1.keyword",
"order": {
"_term": "asc"
},
"size": 30
}
}
}
}