Communicating with the Elasticsearch server
cURL will be our tool of choice that we will use to communicate with Elasticsearch. Elasticsearch follows a REST-like protocol for its exposed web API. Some of its features are as follows:
PUT
: The HTTP methodPUT
is used to send configurations to Elasticsearch.POST
: The HTTP methodPOST
is used to create new documents or to perform a search operation. While successful indexing of documents is done usingPOST
, Elasticsearch provides you with a unique ID that points to the index file.GET
: The HTTP methodGET
is used to retrieve an already indexed document. Each document has a unique ID called a doc ID (short form for document's ID). When we index a document usingPOST
, it provides a document ID, which ...
Get Elasticsearch Blueprints 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.