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

列转化为field时没有自动分词 #384

Open
PandaWuu opened this issue Oct 22, 2020 · 1 comment
Open

列转化为field时没有自动分词 #384

PandaWuu opened this issue Oct 22, 2020 · 1 comment

Comments

@PandaWuu
Copy link

导入全部表,到es里查看能够看到每个表默认是一个index、type,但是无法对某个列进行模糊搜索,感觉是没有对field做默认分词,想请教下如何配置?或者说如何后期手动进行field分词索引?(本人刚接触es,如有回复,不胜感激)

@moxiaonian
Copy link

moxiaonian commented Feb 2, 2021

导入全部表,到es里查看能够看到每个表默认是一个index、type,但是无法对某个列进行模糊搜索,感觉是没有对field做默认分词,想请教下如何配置?或者说如何后期手动进行field分词索引?(本人刚接触es,如有回复,不胜感激)

想要模糊搜索,不需要分词吧。只需要类型定义成 keyword,就可以用模糊搜索吧。类似query_string查询语法里,*搜索词* 就可以

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