我成功安装了ik,输入elasticsearch-plugin list
可以看到输出了analysis-ik。
但是我get 请求:http://localhost:9200/_analyze/?analyzer=ik_smart&text=%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E5%9B%BD%E6%AD%8C,
出现下面的错误
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Unknown parameter [mappings] in request body or parameter is of the wrong type[START_OBJECT] "
}
],
"type": "illegal_argument_exception",
"reason": "Unknown parameter [mappings] in request body or parameter is of the wrong type[START_OBJECT] "
},
"status": 400
}
es版本:6.4.2
ik版本:6.4.2
os:mac
java:1.8
版本问题。
已经解决。
ES的不同版本,差异挺大的,
给后面看见的人提醒一下。版本版本版本!!!