By now you know how to treat Elasticsearch as a distributed document store. You can store documents, update them, retrieve them and delete them, and you know how to do it safely. This is already very, very useful, even though we have not yet looked at the more exciting aspect of how to search within your documents. But first let’s talk about the internal processes that Elasticsearch uses to manage your documents safely in a distributed environment.