Elasticsearch API 统计出错(Fielddata is disabled on text fields

                       

这个实在运行例子https://elasticsearch.cn/book/elasticsearch_definitive_guide_2.x/_analytics.html 的时候

这是由于fielddata是默认关闭的,需要开启。
CURL  PUT  http://localhost:9200/youindex/_mapping/youtype
{
  “properties”: {
    “field”: { 
      “type”:     “text”,
      “fielddata”: true
    }
  }
}

如图这里写图片描述

           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

猜你喜欢

转载自blog.csdn.net/trigfj/article/details/86564914