Skip to content

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

:zap: Return document blocks when search hits different block content https://github.com/siyuan-note/siyuan/issues/10584

Daniel66c6d71888da
diff --git a/kernel/model/search.go b/kernel/model/search.go
index 94a397d141..c5c94b6f1b 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -1593,7 +1593,7 @@ func fromSQLBlock(sqlBlock *sql.Block, terms string, beforeLen int) (block *Bloc
}
}
- hPath, _ := markSearch(sqlBlock.HPath, terms, 18)
+ hPath, _ := markSearch(sqlBlock.HPath, "", 18)
if !strings.HasPrefix(hPath, "/") {
hPath = "/" + hPath
}