Command
curl -X GET 'http://localhost:9200/my_index/_doc/1?pretty'
Examples
Fetch user with ID=1
curl -X GET 'http://localhost:9200/users/_doc/1?pretty'
curl -X GET 'http://localhost:9200/my_index/_doc/1?pretty'
Fetch user with ID=1
curl -X GET 'http://localhost:9200/users/_doc/1?pretty'