【问题标题】:How to test analyzer-smartcn plugin for Elastic Search on local machine如何在本地机器上测试用于 Elastic Search 的analyzer-smartcn 插件
【发布时间】: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


【解决方案1】:

我想通了。我从 zip 中手动安装了插件,但它导致了问题......我重新安装了正确的方法,但特定于 1.7 并且它工作了

【讨论】:

    猜你喜欢
    • 2017-10-07
    • 2011-02-11
    • 1970-01-01
    • 2023-04-06
    • 2012-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多