es查詢結果:
"took" : 48, --------------------> took表示Elasticsearch執行搜索所用的時間,單位是毫秒。
"timed_out" : false, ---------------> 指示搜索是否超時
"_shards" : { ---------------------> _shards 指示搜索了多少分片,以及搜索成功和失敗的分片的計數
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
}
"hits" : { ------------------------> hits 用來實際搜索結果集
"total" : --------------------> 本次搜索返回多少條結果
"max_score": ----------------> 本次搜索中 最大的相關分數
"hits": [----------------------> 默認查詢前10數據 查詢完整的數據 以_source降序排序
{
"_index": "attacker_log_2019-10", --------> 索引
"_type": ----------------------------> 屬性
"_id": ------------------------------> 索引數據id
"_score":
"_source": { ------------------------> 結果原數據
"xxxxxx":
"yyyyyy":
"zzzzzz":
}
}
"aggerations": ----------------------------> 查詢分類聚合數據