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

请问如何在es自定义的脚本插件中调用ik将搜索时传入的关键字进行分词呢, 或者在插件中能直接得到搜索时关键字的分词结果吗? #1003

Open
erxiaoouba opened this issue Apr 23, 2023 · 1 comment

Comments

@erxiaoouba
Copy link

有一个自定义的脚本插件, 需要得到搜索时关键字的分词结果, 请问有什么方式可以得到吗

@chunpat
Copy link

chunpat commented May 17, 2023

用这个可以

curl -XGET "http://localhost:9200/oh_depot_goods_name_list/_analyze" -H 'Content-Type: application/json;charset=utf-8' -d'
{
   "text":"mmpa","tokenizer": "ik_smart"
}'

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