zoukankan      html  css  js  c++  java
  • elasticsearch查询结果返回字段解析

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

  • 相关阅读:
    ubuntu如何设置Python的版本
    PHP队列之理论篇
    ubuntu系統如何啟動root用戶登陸?
    如何绑定腾讯企业邮箱?
    VMware虚拟机安装Ubuntu并设置root登陆
    毕业生,如何选择高薪资与学习机会?
    如何改变memcached默认的缓存时间?
    PHP常用函数之数组篇
    如何安装并使用bower包依赖工具
    z-score
  • 原文地址:https://www.cnblogs.com/yuzhaoblog/p/13863157.html
Copyright © 2011-2022 走看看