【问题标题】:Time taken by count query - Elastic search计数查询所用时间 - 弹性搜索
【发布时间】:2015-11-28 07:36:27
【问题描述】:

我想知道弹性搜索中计数查询所花费的时间,就像包含 took 的搜索查询查询一样 - 花费的时间。

我的查询看起来像 - curl -XGET "http://localhost:9200/index1/type1/_count"

该查询的结果 -

{
   "count": 136,
   "_shards": {
      "total": 15,
      "successful": 15,
      "failed": 0
   }
}

有什么方法可以让我像搜索api一样获得计数查询所花费的时间?

计数 API 的文档 - Count API

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    在撰写此答案时,Elastic 仍然不支持它,提出了feature request,我主要会努力添加对它的支持。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-09
      • 1970-01-01
      • 1970-01-01
      • 2017-01-21
      • 1970-01-01
      • 2021-10-11
      相关资源
      最近更新 更多