After creating an index, the next step is to add some type mappings to it. We have already seen how to include a mapping via the REST API in Chapter 3, Basic Operations.
Managing mappings include the mapping
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 code for this recipe is in the ch15/code/mapping_management.py file.