Elasticsearch return all documents of a given type Elasticsearch return all documents of a given type elasticsearch elasticsearch

Elasticsearch return all documents of a given type


To get all documents from index analytics from type test just run:

curl -XGET localhost:9200/analytics/test/_search

or

curl -XGET localhost:9200/analytics/test/_search -d '{    "query": {"match_all" : {}}}'

If you have count of users more than default size value, you need provide from/size values like described here.