概述上一篇日志中,我们对 elasticsearch 的检索做了最简单的介绍:Elasticsearch 文档的创建与查询本节我们进行更多的深入介绍 检索 ID 对应的一条数据通过请求:GET /megacorp/employee/1 可以获取到 index - type - ID 对应的唯一一条数据{
"_index" : "megacorp",
"_type" : "employee",
"_id" : "1",
"_version" : 1,
"found" : true,
"_source" : {
"first_name" : "John",
"last_name" : "Smith",
"age" : 25,
"about" : "I love to go rock climbing",
"int