Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:zap: 改进块引搜索性能 https://github.com/siyuan-note/siyuan/issues/7262

Liang Ding1e3764074913
diff --git a/kernel/model/search.go b/kernel/model/search.go
index e72c0f30d7..3996ff09ab 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -165,7 +165,7 @@ func SearchRefBlock(id, rootID, keyword string, beforeLen int) (ret []*Block, ne
continue
}
cachedTrees[b.RootID] = tree
- b.RefText = getBlockRefText(id, tree)
+ b.RefText = getBlockRefText(b.ID, tree)
hitFirstChildID := false
if b.IsContainerBlock() {