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

发现缺少不分词查询 #13

Closed
NiceMoon opened this issue Apr 18, 2022 · 3 comments
Closed

发现缺少不分词查询 #13

NiceMoon opened this issue Apr 18, 2022 · 3 comments
Labels
invalid This doesn't seem right

Comments

@NiceMoon
Copy link

发现缺少不分词查询接口

@xpc1024
Copy link
Collaborator

xpc1024 commented Apr 18, 2022

分不分词取决于字段的索引类型是否为text,是否指定分词器等.
并不缺少不分词查询接口,像eq就是精确匹配,并不分词.但一个字段无法同时既支持分词查询,又支持不分词查询,es本身就不支持.
如果你非要这么做,可以建立该字段的冗余字段,值用同一个,类型一个采用keyword,一个用text,就可以化解.

@NiceMoon
Copy link
Author

明白了,多谢

@xpc1024 xpc1024 added the invalid This doesn't seem right label Apr 25, 2022
@xpc1024 xpc1024 closed this as completed Apr 25, 2022
@NiceMoon
Copy link
Author

NiceMoon commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants