Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

哪位大神知晓IK分词插件不同索引指定不同的词典进行分词 #1013

Open
littlelovable opened this issue Aug 8, 2023 · 3 comments

Comments

@littlelovable
Copy link

哪位大神知晓不同索引指定不同的IK词典进行分词呢?

@huadda
Copy link

huadda commented Aug 21, 2023

你在新建索引的时候能够指定字段的分词器。
PUT /test { "mappings": { "properties": { "name": { "type": "text", "index":true, "analyzer":"ik_max_word" }, "info": { "type": "text", "index":true, "analyzer":"standard" }, "ts": { "type": "date" } } } }

@littlelovable
Copy link
Author

上传多个IK词典,如何针对不同的字段指定不同的词典文件名,这块如何配置呢

@huadda
Copy link

huadda commented Aug 21, 2023

你这个问题好像有人回答过 我目前还没有接触过这种场景 你可以参考一下大佬们的
777
431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants