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": ----------------------------> 查询分类聚合数据