Skip to content

块引搜索结果高亮片段改进 #5125

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

Closed
88250 opened this issue Jun 7, 2022 · 2 comments
Closed

块引搜索结果高亮片段改进 #5125

88250 opened this issue Jun 7, 2022 · 2 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Jun 7, 2022

使用 SQLite FTS snippet(),高亮片段效果更好。

全局搜索不能这么干,因为 snippet() 仅支持 64 字符长度,全局搜索框比较长,用了的话右侧空白太多。

@88250 88250 added this to the 2.0.18 milestone Jun 7, 2022
@88250 88250 self-assigned this Jun 7, 2022
88250 added a commit that referenced this issue Jun 7, 2022

Unverified

This user has not yet uploaded their public signing key.
改进全局搜索多个关键字命中时高亮片段 #5124
@88250 88250 closed this as completed Jun 7, 2022
@88250
Copy link
Member Author

88250 commented Sep 18, 2023

全局搜索不能这么干,因为 snippet() 仅支持 64 字符长度,全局搜索框比较长,用了的话右侧空白太多。

实测可以超过 64 tokens,但是界面宽度是自适应的,使用固定值还是有点效果不理想,不过也没有更好的办法了,使用 192 这个值折中吧。

@88250
Copy link
Member Author

88250 commented Mar 24, 2024

#10707 中改为 512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant