Skip to content

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

:art: Tag search supports space-separated keywords https://github.com/siyuan-note/siyuan/issues/14580

Daniel6757da9122c5
diff --git a/kernel/sql/span.go b/kernel/sql/span.go
index d0b055cbb0..26770cddc6 100644
--- a/kernel/sql/span.go
+++ b/kernel/sql/span.go
@@ -101,7 +101,7 @@ func QueryTagSpansByKeyword(keyword string, limit int) (ret []*Span) {
contentLikes := ""
for _, k := range keywords {
if contentLikes != "" {
- contentLikes += " OR "
+ contentLikes += " AND "
}
contentLikes += "content LIKE '%" + k + "%'"
}