Fielddata is disabled on text fields by default. Set fielddata=true on [title] in order to load...

聚合查询报错

Fielddata is disabled on text fields by default. Set fielddata=true on [title] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
解决方案:
https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html

PUT my_index/_mapping
{
  "properties": {
    "my_field": { 
      "type":     "text",
      "fielddata": true
    }
  }
}

在这里插入图片描述

最后,建了一个微信群,本来想大家一起共同学习,目前看来基本上每天都在聊天,加群主微信进群!

你可能感兴趣的:(elasticsearch,elasticsearch,错误与工具收集)