The APIs for managing documents (
update) are the most important after the search ones. In this recipe, we will see how to use them.
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
A Maven tool, or an IDE that supports Scala programming, such as Eclipse (ScalaIDE) or IntelliJ IDEA, with the Scala plugin should be installed.
The code of this recipe can be found in the
chapter_15/elastic4s_sample file and the referred class is
For managing documents, we will perform the following steps: