-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
索引与查找使用相同的analyzer,结果无法命中 #1851
Labels
Comments
|
补充:
protable 和 release jar 的区别是什么呢? 就是data 词典和模型不一样吗?
|
hankcs
added a commit
that referenced
this issue
Oct 19, 2023
hankcs
added a commit
that referenced
this issue
Oct 19, 2023
感谢反馈,已经修复,请检查上面的commit是否解决了这个问题。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
以下是lucene9.7的官方示例,仅修改了保存值。
运行结果:
调试过程中发现:analyzer的查找分词会将
中国人
分成中国
,人
。导致查询不到。但commit 和 search 是使用的同一个analyzer。
尝试将搜索条件 修改成
A 中国人
,发现可以命中结果,此时查询时分词正常,分成A
,中国人
。、这是一个bug还是特性?
System information
The text was updated successfully, but these errors were encountered: