Lession - #131 Elasticsearch APIs
In this section of Elasticsearch tutorial, we will discuss various types of APIs present in Elasticsearch. In order to interact with database, we use these APIs along with HTTP methods like GET, PUT, POST, and DELETE. Elasticsearch offers extensive REST APIs that allow us to manage, integrate, and query the indexed data in various ways. Elasticsearch has five types of APIs.
Document APIs are those APIs that work on the report level. In this way, if in the event that you need to play out some activity at the record level, you need to utilize the archive show up. You can do that with the assistance of archive APIs.
Report APIs is partitioned into two kinds of APIs that are single archive API and multi-record API -
1. Single Document API
These APIs are helpful if you have any desire to perform procedure on a solitary report instead of in mass. Thus, you can utilize these APIs to execute questions on information. Single Document APIs is additionally characterized into four APIs, which are recorded underneath:
2. Multi-Document API
Not at all like a solitary record API, you can utilize the multi-archive APIs for questioning across different reports. For instance - erase or refresh information in mass, and reindex, and so on. Multi-archive APIs is additionally ordered into five APIs, which are recorded underneath:
Multi Get API
Delete By Query API
Update By Query API
We will examine Document API and their sub-division in additional instructional exercises. For more detail, Click Here.
Search APIs are utilized for search across records and different types. It assists with looking through the information in Elasticsearch by executing the inquiry question and get back the output coordinated with the inquiry. This API empowers you to look through the information inside Elasticsearch. You can look through the information in two ways -
Either by sending a get demand with an inquiry that has a string boundary or
Utilizing post demand that comprises inquiry in the message body.
Search API is additionally characterized into three kinds:
We will talk about Search API and their sorts in additional instructional exercises. For more detail, Click Here.
In Elasticsearch, the Aggregation system is utilized for collection. It is answerable for giving collected information. Thus, it gathers every one of the information, which is chosen via search question. In Elasticsearch, a few sorts of collections are accessible, which are summed up in 4 significant families for rearrangements. These are -
We will examine collection and their sorts in additional instructional exercises. For more detail, Click Here.
Record API or Indices API plays out the activity at the file level. It is answerable for overseeing different records, list settings, file layouts, planning, and pseudonyms. It gives admittance to files, planning, and nom de plumes, and so forth.
Whenever a solicitation is made for a file with explicit planning, this API assists with adding or update the JSON archive in that individual record.
There is a rundown of tasks given beneath that we can perform on Index APIs:
We will talk about the Index APIs and these activities in additional instructional exercises. For more detail, Click Here.
With the assistance of Cluster API, you can play out the activity at the bunch level. We can utilize this API to deal with our groups. In Elasticsearch, this API assists with getting the data about a group and its hub. It likewise rolls out additional improvements in them.
As we said, here we have a ton of hubs and this elasticsearch climate can be multi-hub arrangement also. Thus, for this situation, bunch API gives us data regarding the group. Following are a portion of the orders, which can execute to get more data about a bunch:
Pending Cluster Tasks