I am writing messages into elasticsearch using a single thread, and using
transportClient.prepareIndex(index, type, id)
If I write messages continuously, I observe that some messages are lost
somewhere in transit, and my query returns less entries than I write.
If I use elasticsearchhead UI, I see the status of the index as
size: 68.9mb (68.9mb)
docs: 42795 (42820)
My index status returns:
- num_docs: 42795
- max_doc: 42820
- deleted_docs: 25
The max_docs is less than the number of entries that I pushed into
ElasticSearch. And why are some messages marked as deleted?
I am using ElasticSearch 0.16.2.