mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 09:16:09 +01:00
🎨 Global search supports pagination to display results https://github.com/siyuan-note/siyuan/issues/7948
This commit is contained in:
parent
685b7e1383
commit
1eba131624
6 changed files with 21 additions and 12 deletions
|
|
@ -668,7 +668,7 @@ func searchBackmention(mentionKeywords []string, keyword string, excludeBacklink
|
|||
buf.WriteString(" ORDER BY id DESC LIMIT " + strconv.Itoa(Conf.Search.Limit))
|
||||
query := buf.String()
|
||||
|
||||
sqlBlocks := sql.SelectBlocksRawStmt(query, Conf.Search.Limit)
|
||||
sqlBlocks := sql.SelectBlocksRawStmt(query, 1, Conf.Search.Limit)
|
||||
terms := mentionKeywords
|
||||
if "" != keyword {
|
||||
terms = append(terms, keyword)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue