Below are some basic curl commands for interacting with Elasticsearch. These commands cover common operations such as creating indices, adding documents, searching, updating, and deleting data. Replace <your-elasticsearch-url> with your Elasticsearch endpoint (e.g., https://localhost:9200).
1. Check Elasticsearch Status
curl -X DELETE 'https://localhost:9200/_all'
13. List all indics
curl -X https://localhost:9200/_all?pretty=true
14. Get results from a index
curl -X https://localhost:9200/{indexname}/_search?pretty=true
For example: https://localhost:9200/magento_product_1_v3/_search?pretty=true
