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

请问小书匠全文搜索怎样才能按词搜索而不是按字? #1715

Open
yusheng108 opened this issue Nov 21, 2023 · 2 comments
Open

Comments

@yusheng108
Copy link

我是注册会员,已升级到最新版本,在左上角的全文搜索词,结果是按字搜索出来的结果。在文章中搜索则可以按词搜索。
这个问题很头大,文章保存多了之后要查找起来就麻烦了。请尽快解决,拜托啦。

@suziwen
Copy link
Owner

suziwen commented Nov 21, 2023

更新到 8.12.54 , 我加了个精确匹配模式,就是在搜索词前后用引号包裹,就会完整匹配了。

不过这种模式,每次查询时,都需要全库扫描,速度会比较慢。文章特别多,机器 cpu, 硬盘性能不好的话,查询起来会很痛苦。

详细教程可以看这里 小书匠全文搜索语法 | 小书匠


image

@yusheng108
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