An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve searching for move blocks https://github.com/siyuan-note/siyuan/issues/15564#issuecomment-3604599711
Danielc917626d471f
diff --git a/kernel/model/file.go b/kernel/model/file.goindex c53f3d5eb0..30954e2f8b 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -187,8 +187,8 @@ func SearchDocsByKeyword(keyword string, flashcard bool, excludeIDs []string) (r}}- if 0 < len(excludeIDs) {- condition += fmt.Sprintf(" AND root_id NOT IN ('%s')", strings.Join(excludeIDs, "', '"))+ for _, excludeID := range excludeIDs {+ condition += fmt.Sprintf(" AND path NOT LIKE '%%%s%%' ", excludeID)}rootBlocks = sql.QueryRootBlockByCondition(condition, Conf.Search.Limit)