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

ios 模糊搜索 搜索不到 #500

Open
nbXiaoZhi opened this issue Jul 22, 2024 · 4 comments
Open

ios 模糊搜索 搜索不到 #500

nbXiaoZhi opened this issue Jul 22, 2024 · 4 comments

Comments

@nbXiaoZhi
Copy link

假如信息内容是“测试15486” 搜索 154 能搜索到信息 打算搜索“5486” 就搜索不到

@heavyrain2012
Copy link
Collaborator

你用微信搜索一下看看,微信也是这样的,可能我们用了共同的库的原因

@nbXiaoZhi
Copy link
Author

有什么办法能解决呢?我的是客户提出来的 客户群聊天中发了甲方的电话 客户想搜索时 搜索电话后的4位 它搜不到,能麻烦您能给个方法吗?还是说无法解决

@heavyrain2012
Copy link
Collaborator

没有办法解决的,微信也是这样的。我跟我们架构师确认了一下,原因是我们和微信的搜索采用的都是FTS搜索,使用了相似的分词原则,只能是开头匹配。如果要是任意匹配,分词表的大小将会增大非常大。综合考虑保持与微信一致是最合理的选择

@nbXiaoZhi
Copy link
Author

好的 谢谢您!

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