Comments (16)
cao, 我也是这个错误
from elasticsearch-analysis-ik.
elasticsearch版本是多少呢?
from elasticsearch-analysis-ik.
1.2.1
from elasticsearch-analysis-ik.
我的1.1.0的版本也是这样,重启时没有看到加载进去。mmseg插件也是这样的问题,不知道为何没有加载到?
from elasticsearch-analysis-ik.
是修改了版本之后重新编译的jar么
from elasticsearch-analysis-ik.
@medcl ,是的,因为给的版本用jdk7编译的,我们服务器环境都是6的环境,自己编译了,对照原来的版本没有发现区别。。。
from elasticsearch-analysis-ik.
需要修改pom.xml里面的es版本号的
from elasticsearch-analysis-ik.
确定配置文件是否编辑正确,注意yml文件格式,比如前面是否多一个空格
from elasticsearch-analysis-ik.
目前pom.xml里面版本号已经改为一致,而且yml文件有多一个空格,这样还是报错:org.elasticsearch.ElasticsearchIllegalArgumentException: failed to find analyzer type [ik] or tokenizer for [ik] 。 如果注释掉yml里的配置,就没有这个错,但也没有分词效果,这说明是配置已经读到该信息了。但是为何还是没有正确load出来呢。。
from elasticsearch-analysis-ik.
应该还是yml格式的问题,你附件传上来看看
from elasticsearch-analysis-ik.
es-version: 1.4.2
es-ik-version: 1.2.9
mvn package 打包得到jar包,放到es plugin目录,并将config中ik目录放到es的config目录中,最后在elasticsearch.yml结尾中配置(我直接把我的配置复制过来):
index:
analysis:
analyzer:
ik:
alias: [ik_analyzer]
type: org.elasticsearch.index.analysis.IkAnalyzerProvider
ik_max_word:
type: ik
use_smart: false
ik_smart:
type: ik
use_smart: true
运行命令:
curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
{
"fulltext": {
"_all": {
"indexAnalyzer": "ik",
"searchAnalyzer": "ik",
"term_vector": "no",
"store": "false"
},
"properties": {
"content": {
"type": "string",
"store": "no",
"term_vector": "with_positions_offsets",
"indexAnalyzer": "ik",
"searchAnalyzer": "ik",
"include_in_all": "true",
"boost": 8
}
}
}
}'
返回出错:{"error":"MapperParsingException[Analyzer [ik] not found for field [content]]","status":400}
查了下,出现这样的错误是说yml配置文件格式有问题。
我了解yml缩进格式,冒号后面必须有一个空格,缩进时不能使用tab,而是使用1个或多个空格,按照这样的格式修改,并且在http://yaml-online-parser.appspot.com/ 上解析过,正常。
能否帮我看下是什么问题?
from elasticsearch-analysis-ik.
同问啊,我的启动也是显示加载成功了,但是创建mapping的时候,ik not found for field
from elasticsearch-analysis-ik.
集群中是否有其他配置不一样的节点?
from elasticsearch-analysis-ik.
es-version: 1.7.2
es-ik-version: 1.4.0
mvn package 打包得到jar包,放到es plugins目录,并将config中ik目录放到es的config目录中,最后在elasticsearch.yml结尾中配置(照着仓库 readme复制的):
index:
analysis:
analyzer:
ik:
alias: [ik_analyzer]
type: org.elasticsearch.index.analysis.IkAnalyzerProvider
ik_max_word:
type: ik
use_smart: false
ik_smart:
type: ik
use_smart: true
然后启动elastic search 正常,词库 在执行[Dict Loading]ik/custom/ext_stopword.dic到这里停在那了,然后请求http://localhost:9200/_analyze?analyzer=ik&pretty=true&text=我是**人 就会报错
{
"error" : "ElasticsearchIllegalArgumentException[failed to find analyzer [ik]]",
"status" : 400
}
from elasticsearch-analysis-ik.
有雷!我也踩上了!有解决的吗?
from elasticsearch-analysis-ik.
1.7.2我测试也是可以的.
1.请检查一下配置文件,或者直接拷贝本项目config下配置
2.打包之后请拷贝releases下面的elasticsearch-analysis-ik-1.4.0-jar-with-dependencies包
from elasticsearch-analysis-ik.
Related Issues (20)
- 中文简繁体同时存在时的检索 HOT 3
- 希望适配7.17.18 HOT 1
- ES8.9.2,没有对应的release版本 HOT 2
- 英文数词被标记为 CN_WORD HOT 3
- 缺少opensearch以往版本的ik分词器 HOT 4
- https://release.infinilabs.com/analysis-ik/stable/ 里 ik只有opensearch版本,没有 HOT 2
- 如何修改 analysis-ik 支持的 Elasticsearch版本号? HOT 4
- 希望提供8.13.2、7.17.19版本插件 HOT 2
- 希望提供 7.17.17 版本插件 HOT 1
- 为什么加入ik分词器后,kibana无法进行启动(版本都是与es对应的) HOT 4
- 希望提供 OpenSearch 2.13.0 版本插件 HOT 1
- 求7.17.20版本的ik HOT 2
- 希望提供V8.13.2版本
- 希望提供v7.17.20版本插件 HOT 1
- ik无法按照main.dic字典分词,比如创立,已经在词典了,但ik_smart的时候分不出来 HOT 1
- failed to find global analyzer [ik_smart] HOT 1
- OpenSearch 2.14.0 构建 HOT 1
- IK分词器量词问题 HOT 1
- ik for 7.17.22 HOT 3
- 是否支持ElasticSearch v8.14.0版本的中文分词? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-analysis-ik.