【发布时间】:2018-08-11 06:39:02
【问题描述】:
我在我的弹性搜索上安装了 smartcn 插件,重新启动了弹性搜索并尝试使用以下设置创建索引:
PUT /test_chinese
{
"settings": {
"index": {
"analysis": {
"analyzer": {
"default": {
"type": "smartcn"
}
}
}
}
}
}
但是,当我在 Marvel 中运行它时,我得到了这个错误,并且我在 Elastic search 中看到了一堆错误:
"error": "IndexCreationException[[test_chinese] 创建失败 指数];嵌套:ElasticsearchIllegalArgumentException [找不到 分析器类型 [smartcn] 或 [default] 的标记器];嵌套: NoClassSettingsException [无法加载类设置 [type] 价值[smartcn]];嵌套: ClassNotFoundException[org.elasticsearch.index.analysis.smartcn.SmartcnAnalyzerProvider]; ", "状态": 400
有什么我可能缺少的想法吗?
【问题讨论】:
-
你确定smartcn安装成功了吗?尝试 GET /_cat/plugins 查看是否列出了 analysis-smartcn
-
啊,它不存在。我确实通过这里将它安装到我的弹性搜索文件夹中:elastic.co/guide/en/elasticsearch/plugins/current/… 它在我运行 plugins.bat -l 时出现,但是当我在服务器上运行它时它不存在。据我所知,我只需要在安装插件后重新启动 Elastic Search,所以我不确定它为什么没有到达我的节点。
标签: elasticsearch