put 192.168.50.233:9200/newrut/_mapping/newcomputer
{
"properties": {
"Name": {
"type": "string",
"analyzer": "ik_smart"
}
}
}
給Name欄位映射ik分詞器失敗
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Mapper for [Name] conflicts with existing mapping in other types:\n[mapper [Name] has different [analyzer]]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [Name] conflicts with existing mapping in other types:\n[mapper [Name] has different [analyzer]]"
},
"status": 400
}
原因是資料默認已有分詞器了,那么這種情況下想用ik分詞器該怎么辦?
uj5u.com熱心網友回復:
https://elasticsearch.cn/question/5325參考下
uj5u.com熱心網友回復:
謝謝你的參考鏈接轉載請註明出處,本文鏈接:https://www.uj5u.com/net/129555.html
標籤:ASP.NET
上一篇:請問論壇的評論參考怎么做?
