The APIs for managing documents (index, delete, and update) are the most important after the search ones. In this recipe, we will look at how to use them.
Managing documents
Getting ready
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
An IDE that supports Scala programming, such as IntelliJ IDEA, with the Scala plugin should be installed globally.
The code for this recipe can be found in the ch14/elastic4s_sample file and the referred class is DocumentExample.