
ElasticSearch Cookbook
By :

The official ElasticSearch clients are designed to use several transport layers. They allow using the HTTP, thrift or memcached protocol without changing your application code.
The thrift and memcached protocols are binary ones and due to their structures they are generally a bit faster than the HTTP one. They wrap the REST API and share the same behavior so that switching between protocols is very easy.
In this recipe, we'll see how to instantiate a client with different protocols.
You need a working ElasticSearch cluster and plugins for extra protocols. The full code of this recipe is in the chapter_11/client_creation.py
file.
For creating a client, we need to perform the following steps:
pip
command:pip install elasticsearch...
Change the font size
Change margin width
Change background colour