mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 15:09:29 +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 := ""
|
contentLikes := ""
|
||||||
for _, k := range keywords {
|
for _, k := range keywords {
|
||||||
if contentLikes != "" {
|
if contentLikes != "" {
|
||||||
contentLikes += " OR "
|
contentLikes += " AND "
|
||||||
}
|
}
|
||||||
contentLikes += "content LIKE '%" + k + "%'"
|
contentLikes += "content LIKE '%" + k + "%'"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user