Second to document insertion, the most commonly executed action in Elasticsearch is the search. The official Elasticsearch client APIs for searching are similar to the REST API.
Executing a standard search
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 were installed in the Creating a client recipe in this chapter.
The code for this recipe can be found in the ch15/code/searching.py file.