绊脚石乃是进身之阶。

No handler for type [histogram] declared on field [my_histogram]

Elasticsearch | 作者 febmark | 发布于2021年03月27日 | 阅读数:1576

执行创建index的时候提示这个:

PUT my-index-000001
{
"mappings" : {
"properties" : {
"my_histogram" : {
"type" : "histogram"
},
"my_text" : {
"type" : "keyword"
}
}
}
}
 
提示这个:
No handler for type [histogram] declared on field [my_histogram]
 
感谢
已邀请:

Charele - Cisco4321

赞同来自:

每个类型,比如int,text都是需要注册的,这些内部类型要注册,
像histogram这种外部类型也需要注册。
注册过程在IndicesModule类的getMappers()方法里面。。。。
 
看下你的ES安装目录modules目录里面没有x-pack-analytics目录

要回复问题请先登录注册