infinilabs / analysis-ik

🚌 The IK Analysis plugin integrates Lucene IK analyzer into Elasticsearch and OpenSearch, support customized dictionary.
Apache License 2.0
16.49k stars 3.27k forks source link

8.3.1b版本使用8.3.3版本,重新编译安装成功后,使用报错 #1006

Closed tyzhong closed 10 months ago

tyzhong commented 1 year ago

我是用的es版本是8.3.1,下载8.3.3源码,修改其中的版本依赖:

org.ansjelasticsearch-analysis-ansj 8.3.1.0 elasticsearch analysis by ansj elasticsearch-analysis-ansj http://maven.nlpcn.org UTF-8 **/MainTestSuite.class elasticsearch-analysis-ansj17 8.3.1 org.ansj.elasticsearch.plugin.AnalysisAnsjPlugin 重新打包安装正常 使用api调用的方式可以正常使用: localhost:9200/ cat/ansi?text=中国&tvpe=indey oni 但是kibana中使用调用 POST _analyze { "text": ["美国阿拉斯加州发生8.0级地震"], "analyzer": "index_ansj" } 测报错: { "error": { "root_cause": [ { "type": "null_pointer_exception", "reason": """Cannot invoke "String.length()" because "s" is null""" } ], "type": "null_pointer_exception", "reason": """Cannot invoke "String.length()" because "s" is null""" }, "status": 500 }
ilaotan commented 1 year ago

elasticsearch-analysis-ansj 这个仓库的?