인덱스에서 특정 문서를 조회한다. 문서의 id를 지정하면 해당 문서의 내용을 가져온다.

GET movie_kibana_execute/_doc/5
# 결과
{
  "_index" : "movie_kibana_execute",
  "_type" : "_doc",
  "_id" : "5",
  "_version" : 7,
  "_seq_no" : 16,
  "_primary_term" : 2,
  "found" : true,
  "_source" : {
    "message" : "helloworld",
    "test-obj" : {
      "key1" : "value1-v6",
      "key2" : "value2-v6",
      "key3" : 66
    }
  }
}

_source 필드에 모든 필드 정보가 포함된다. 그러나 특정 필드만 봐야할 경우가 있는데, ?_source_excludes 파라미터로 특정 필드를 제외할 수도 있다. (가령, 특정필드에 매우 큰 데이터가 들어있는데 굳이 해당 필드가 필요없는 경우)

요청 (_source_excludes 지정)

GET movie_kibana_execute/_doc/5?_source_excludes=test-obj.key2
# 응답
{
  "_index" : "movie_kibana_execute",
  "_type" : "_doc",
  "_id" : "5",
  "_version" : 7,
  "_seq_no" : 16,
  "_primary_term" : 2,
  "found" : true,
  "_source" : {
    "message" : "helloworld",
    "test-obj" : {
      "key1" : "value1-v6",
      "key3" : 66
    }
  }
}