An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: Return document blocks when search hits different block content https://github.com/siyuan-note/siyuan/issues/10584
Danielee788ee28a2b
diff --git a/kernel/model/search.go b/kernel/model/search.goindex fd5de75eb6..d5bd8d6082 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -1441,9 +1441,8 @@ func fullTextSearchByFTSWithRoot(query, boxFilter, pathFilter, typeFilter, ignor}if 0 < len(resultBlocks) {matchedRootCount = int(result[0]["docs"].(int64))+ matchedBlockCount = matchedRootCount}- logging.LogInfof("time cost [main search]: %v", time.Since(start))- now := time.Now()keywords = gulu.Str.RemoveDuplicatedElem(keywords)terms := strings.Join(keywords, search.TermSep)@@ -1452,7 +1451,6 @@ func fullTextSearchByFTSWithRoot(query, boxFilter, pathFilter, typeFilter, ignorret = []*Block{}}- logging.LogInfof("time cost [highlight search]: %v", time.Since(now))logging.LogInfof("time cost [all]: %v", time.Since(start))return}