mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 05:09:26 +08:00
🎨 Tag search supports space-separated keywords https://github.com/siyuan-note/siyuan/issues/14580
This commit is contained in:
parent
c3bb1fc76f
commit
6757da9122
@ -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 + "%'"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user