码迷,mamicode.com
首页 > 其他好文 > 详细

Elasricsearch 优化Terms聚合的性能

时间:2019-12-19 13:21:41      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:pre   html   ast   elastics   lob   desc   type   data   word   

Warm up global ordinals
Global ordinals are a data-structure that is used in order to run terms aggregations on keyword fields. They are loaded lazily in memory because Elasticsearch does not know which fields will be used in terms aggregations and which fields won’t. You can tell Elasticsearch to load global ordinals eagerly at refresh-time by configuring mappings as described below:

PUT index
{
  "mappings": {
    "properties": {
      "foo": {
        "type": "keyword",
        "eager_global_ordinals": true
      }
    }
  }
}

原文链接:https://www.elastic.co/guide/en/elasticsearch/reference/7.1/tune-for-search-speed.html

Elasricsearch 优化Terms聚合的性能

标签:pre   html   ast   elastics   lob   desc   type   data   word   

原文地址:https://www.cnblogs.com/action-go/p/12066988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!