Elasticsearch APIs

 (12/07/22)

There are 5 major Elasticsearch APIs.

1. Document APIs

2. Search APIs

3. Aggregation

4. Index APIs

5. Cluster APIs 


1. Document APIs

                    Document APIs are further categorized into two major categories.

    I. Single Document API:

                In case we need to perform an operation on a single document we use these APIs for Querying. 
  • Index API -
                Let's use PUT query first.
                
                
                And the response should be like the below image.

                This means that the data has been inserted into the database.
  • Get API -
  • Update API -
  • Delete API -

    II. Multi-Document API:

                In case we need to perform an operation on a Multiple documents we use these APIs for Querying. 
  • Multi Get API -
  • Bulk API -
  • Delete by Query API -
  • Update by Query API -
  • Reindex API -

Comments

Popular posts from this blog

A Step-by-Step Guide to Download Sale Invoices from Odoo 17 Using Python Flask and XML-RPC

Installing Elasticsearch (ELK Stack) on Windows laptop