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

This commit is contained in:
Daniel 2025-04-13 16:55:56 +08:00
parent c3bb1fc76f
commit 6757da9122
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -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 + "%'"
}