Tutorial by Examples

curl -XGET 'http://www.example.com:9200/myIndexName/_count?pretty' Output: { "count" : 90, "_shards" : { "total" : 6, "successful" : 6, "failed" : 0 } } The index has 90 documents within it. Reference Link: Here
curl -XGET 'http://www.example.com:9200/myIndexName/myTypeName/1' Output: { "_index" : "myIndexName", "_type" : "myTypeName", "_id" : "1", "_version" : 1, "found": true, "_source&qu...
curl -XPUT 'www.example.com:9200/myIndexName?pretty' Output: { "acknowledged" : true } Reference Link: Here
curl 'www.example.com:9200/_cat/indices?v' output: health status index pri rep docs.count docs.deleted store.size pri.store.size green open logstash-2016.07.21 5 1 4760 0 4.8mb 2.4mb green open logstash-2016.07.20 5 1 7232 ...
curl -XDELETE 'http://www.example.com:9200/myIndexName?pretty' output: { "acknowledged" : true } Reference Link: Here
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

Page 1 of 1