shard_size的术语汇总

时间:2019-07-22 17:47:48

标签: elasticsearch-aggregation

我有这样写的字词查询,我的索引有18个分片。我对分片大小参数的重要性有疑问。分片大小参数越高,查询响应越准确,

{
  "terms": {
    "field": "@timestamp",
    "size": 1,
    "shard_size": 1000,
    "order": {
      "_count": "desc"
    }
  }
}

即使我只有18个分片,为什么还要为shard_size期望更多的值,并给出适当的响应

0 个答案:

没有答案
相关问题