Get a document

Use this API to return the stored field of a document.

Parameters:

curl -XGET "http://localhost:9091/indexes/my_index/doc/3"

Response

The API returns the stored fields of the document:

{
  "name" : "Third name",
  "price" : 3.3,
  "stock" : 0
}