Fix global search edit err branch#1033
Closed
bobodaye wants to merge 8 commits intomindoc-org:masterfrom
Closed
Conversation
- 为 Cherry 编辑器阅读模式的目录添加最大高度限制 - 当目录过长时支持垂直滚动查看后续条目 - 使用 calc(100vh - 180px) 动态计算合适的滚动容器高度 - 启用 webkit 平滑滚动以改善移动端体验
1. 搜索流程重构:倒排索引搜索改为先取候选、统一加权排序后再分页,避免高相关结果被提前截断 2. 排序算法优化:重构 TF-IDF 计算并加入标题命中、正文精确匹配和查询词覆盖率 boost,提升搜索准确度 3. 性能与权限优化:搜索结果改为批量回表加载并统一过滤项目权限,减少逐条查询开销 4. 索引构建与维护改进:统一按“标题 + 正文”建立索引,补充空内容占位索引,并新增 `mindoc reindex` 全量重建命令 5. 其他搜索优化:传统 SQL 搜索增加标题相关性排序,分词器增加停用词/术语过滤,并为索引查询补充表名校验
…licit selection in editor init
…nd keywords in search
- Ctrl+F 不再被拦截,放行浏览器原生页面内搜索 - ESC 关闭搜索面板在输入框焦点状态下也生效 - 修复评论内容 XSS 漏洞,对用户输入进行 HTML 转义 - 搜索输入添加 300ms 防抖,减少无效请求 - 修正目录高亮滚动跟踪容器为 .manual-right
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.