Elasticsearch Curl Commands List all documents in a index


Example

curl -XGET http://www.example.com:9200/myIndexName/_search?pretty=true&q=*:*

This uses the Search API and will return all the entries under index myIndexName.

Reference Link: Here