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

分词查询问题 #27

Open
lullaby-afa opened this issue Aug 23, 2021 · 1 comment
Open

分词查询问题 #27

lullaby-afa opened this issue Aug 23, 2021 · 1 comment

Comments

@lullaby-afa
Copy link

你好,我想问下,搜索查询的时候使用的结巴对query进行分词、去停用词,然后match处理过的process_question,但是es的分词用的是IK,这样是不是有问题的呀?

@xiaoyichao
Copy link
Collaborator

你好,我想问下,搜索查询的时候使用的结巴对query进行分词、去停用词,然后match处理过的process_question,但是es的分词用的是IK,这样是不是有问题的呀?

ES里最方便的就是IK分词器,IK分词器一定是要使用的。本质上使用的是结巴的分词,IK分词器拿到结巴的分词结果再按照term去查询。所以其实没有用IK默认的分词结果,只是用了IK分词器来查询。

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