Reputation: 1
Scenario: I have my index refresh interval set to -1 (no automatic refresh). I add 20 documents to index using bulk with refresh=true. Are all documents visible at same time? The question is are Elasticsearch refreshes atomic? Are all the changes made to index since last refresh visible all at once?
Upvotes: 0
Views: 301
Reputation: 1855
As Elasticsearch is distributed, it is considered as eventually consistent - meaning that (on some operations) after some time they would be consistent through all calls. The reason is that the data is spread between multiple replicas of the same shard, and search/get requests might be routed to different nodes, where the shards might be still synching with new changes, and therefore some searches might return data which is not the latest.
Upvotes: 1