列出索引中的所有文档

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

这使用 Search API 并将返回索引 myIndexName 下的所有条目。

参考链接: 这里