Skip to content

Fix global search edit err branch#1033

Closed
bobodaye wants to merge 8 commits intomindoc-org:masterfrom
bobodaye:fix_global_search_edit_err_branch
Closed

Fix global search edit err branch#1033
bobodaye wants to merge 8 commits intomindoc-org:masterfrom
bobodaye:fix_global_search_edit_err_branch

Conversation

@bobodaye
Copy link
Copy Markdown
Contributor

No description provided.

bobodaye and others added 8 commits March 5, 2026 21:46
- 为 Cherry 编辑器阅读模式的目录添加最大高度限制
- 当目录过长时支持垂直滚动查看后续条目
- 使用 calc(100vh - 180px) 动态计算合适的滚动容器高度
- 启用 webkit 平滑滚动以改善移动端体验
1. 搜索流程重构:倒排索引搜索改为先取候选、统一加权排序后再分页,避免高相关结果被提前截断
2. 排序算法优化:重构 TF-IDF 计算并加入标题命中、正文精确匹配和查询词覆盖率 boost,提升搜索准确度
3. 性能与权限优化:搜索结果改为批量回表加载并统一过滤项目权限,减少逐条查询开销
4. 索引构建与维护改进:统一按“标题 + 正文”建立索引,补充空内容占位索引,并新增 `mindoc reindex` 全量重建命令
5. 其他搜索优化:传统 SQL 搜索增加标题相关性排序,分词器增加停用词/术语过滤,并为索引查询补充表名校验
- Ctrl+F 不再被拦截,放行浏览器原生页面内搜索
- ESC 关闭搜索面板在输入框焦点状态下也生效
- 修复评论内容 XSS 漏洞,对用户输入进行 HTML 转义
- 搜索输入添加 300ms 防抖,减少无效请求
- 修正目录高亮滚动跟踪容器为 .manual-right
@bobodaye bobodaye closed this Mar 26, 2026
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

Successfully merging this pull request may close these issues.

2 participants