Chapter 15: Python Integration
In the previous chapter, we learned how to use a native client to access the Elasticsearch server via Java. This chapter is dedicated to the Python language and how to manage common tasks via its clients.
Apart from Java, the Elasticsearch team supports official clients for Perl, PHP, Python, .NET, and Ruby (see the announcement post on the Elasticsearch blog at http://www.elasticsearch.org/blog/unleash-the-clients-ruby-python-php-perl/). These clients have a lot of advantages over other implementations. A few of them are as follows:
- They are strongly tied to the Elasticsearch API. These clients are direct translations of the native Elasticsearch REST interface – the Elasticsearch team.
- They handle dynamic node detection and failovers. They are built with a strong networking base for communicating with the cluster.
- They have full coverage of the REST API. They share the same application approach for every language that they are...