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 ...

Get Elasticsearch 8.x Cookbook - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.