Elasticsearch from Python Programming

In the last chapter, we introduced Java programming with Elasticsearch. A sample Spring Boot project is provided to demonstrate the programming technique for both the high-level and low-level REST clients. We also used Swagger UI to create an interface to test the REST API. To make a long story short, since the transport client will not be supported anytime soon, the REST client is the method you need to go with when you program with the Java language. In this chapter, we are going to introduce the Python Elasticsearch client. You will learn about two Elasticsearch client packages, elasticsearch-py and elasticsearch-dsl-py. The elasticsearch-py package is the official low-level client for Elasticsearch. The goal of the Python package is to provide common ground for all Elasticsearch-related code in Python. Elasticsearch DSL is a high-level library built on top of elasticsearch-py to provide a more convenient and idiomatic way of writing and manipulating queries. In this chapter, we will come to understand how the client works, and how to incorporate it into a Python application. Finally, we can extend not only our skills in Elasticsearch with Java programming, but also with Python programming.

In this chapter, we will cover the following topics:

  • Overview of the Elasticsearch Python client
  • The Python low-level Elasticsearch client
  • The Python high-level Elasticsearch library

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.7.174