Hi community
I have a flink job which will consume Kafka message and load into Elasticsearch. In order to monitor the number of documents loaded into Elasticsearch, I write a DSL to get the 'hits total' in Elasticsearch,
GET some-indice/_search
{
"track_total_hits":true
}
Another way is
GET some-indice/_count
{
}
Normally, this will give me an increased 'hits total' value due to stream data . However, When I execute this script frequently, I got a decreased value than previous query occasionally. Is this a normal behavior that Elasticsearch will return a decreased 'hits total' value occasionally? There is no any delete work on Elasticsearch.