[Elasticsearch] Query 검색 결과 구조
{
"took" : 3, // 검색 수행 시간 (milliseconds)
"timed_out" : false, // 검색 쿼리 수행 중 timeout 발생 여부를 나타낸다.
"_shards" : { // 요청에 대한 검색 결과를 위해 참여한 샤드
"total" : 2,
"successful" : 2, // 요청에 대한 성공 샤드 수
"failed" : 0 // 요청에 대한 실패 샤드 수
},
"hits" : {
"total" : 1, // 요청에 대한 결과 문서 수
"max_score" : 1.0, // 검색 쿼리에 얼마만큼 부합되는지를 나타내는 척도 (결과 문서 중 가장 높은 score를 표시)
"hits" : [ {
"_index" : "get-together", // 인덱스
"_type" : "group", // 타입
"_id" : "1", // 문서의 ID
"_score" : 1.0, // 검색 쿼리에 얼만큼 관련성이 있는지 나타냄
"_source" : { // 검색 결과 내용
"name" : "Denver Clojure",
"organizer" : [ "Daniel", "Lee" ],
"description" : "Group of Clojure enthusiasts from Denver who want to hack on code together and learn more about Clojure",
"created_on" : "2012-06-15",
"tags" : [ "clojure", "denver", "functional programming", "jvm", "java" ],
"members" : [ "Lee", "Daniel", "Mike" ],
"location_group" : "Denver, Colorado, USA"
}
} ]
}
}