Skip to content

feat: 实现全文索引倒排+tfidf搜索#1027

Merged
gsw945 merged 1 commit intomindoc-org:masterfrom
nl8590687:master
Mar 18, 2026
Merged

feat: 实现全文索引倒排+tfidf搜索#1027
gsw945 merged 1 commit intomindoc-org:masterfrom
nl8590687:master

Conversation

@nl8590687
Copy link
Contributor

feat: 实现全文索引倒排+tfidf搜索
背景:原有全局搜索能力存在不足,且难以满足AI大模型通过MCP接口进行搜索的需求


自测结果
测试通过

自测截图
image
image

综合测试报告

测试维度 测试场景 期望结果 实际结果 测试结论
功能测试 测试搜索结果正确性 前10条搜索结果存在预期内容 符合预期结果 ✅通过
功能测试 测试MCP功能和检索结果正确性 AI大模型成功调用MCP功能,并且搜索结果和输出是预期内容 符合预期结果 ✅通过
兼容性测试 测试Sqlite数据库兼容性 全文索引和搜索功能正常 符合预期结果 ✅通过
兼容性测试 测试MySQL数据库兼容性 全文索引和搜索功能正常 符合预期结果 ✅通过
性能测试 测试搜索结果页面/接口平均响应时间 平均响应时间<1000ms 符合预期结果,实际测试中在100ms以下 ✅通过

c.Prepare()
c.TplName = "search/index.tpl"

// 如果没有开启你们访问则跳转到登录
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你们 -> 匿名

@gsw945 gsw945 merged commit 86d76cf into mindoc-org:master Mar 18, 2026
3 checks passed
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