February 2017
Intermediate to advanced
696 pages
12h 24m
English
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 4, Basic Operations.
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
You also need the Python installed packages of Creating a client recipe of this chapter.
The code for this recipe is in the chapter_16/mapping_management.py file.
After having initialized a client and created an index, the steps for managing the indices are as follows:
These steps are easily managed with the following code: ...
Read now
Unlock full access