The APIs for managing a document (index, update, and delete) are the most important after the search APIs. In this recipe, we will see how to use them in a standard way and use bulk actions to improve performance.
Managing documents
Getting ready
You need an up-and-running Elasticsearch installation, which we described how to get in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
You also need the Python packages that we installed in the Creating a client recipe in this chapter.
The full code for this recipe can be found in the ch15/code/document_management.py file.