Skip to content

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

:art: Simplify document block paths in search results https://github.com/siyuan-note/siyuan/issues/13364

Daniela8f088cb5e7d
diff --git a/kernel/model/search.go b/kernel/model/search.go
index fb35588003..a3fff9977d 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -1125,7 +1125,9 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
ret = []*Block{}
}
- filterSelfHPath(ret)
+ if 0 == groupBy {
+ filterSelfHPath(ret)
+ }
return
}