Elasticsearch 6 启动成功后 创建类型报错 analyzer [ik_smart] not found for field [description] 的原因
vagrant@homestead:~/code/laravel-shop$ curl -H'Content-Type: application/json' -XPUT http://localhost:9200/test_index/_mapping/_doc?pretty -d'{
> "properties": {
> "title": { "analyzer": "ik_smart","type": "text" },
> "description": { "analyzer": "ik_smart","type": "text" },
> "price": { "type": "scaled_float", "scaling_factor": 100 }
> }
> }'
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "analyzer [ik_smart] not found for field [description]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "analyzer [ik_smart] not found for field [description]"
},
"status" : 400
}
推荐文章: