Skip to content

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

:art: Search `Group by doc` follows the search setting limit display https://github.com/siyuan-note/siyuan/issues/11667

Daniel6758561a44b4
diff --git a/kernel/model/search.go b/kernel/model/search.go
index 3faf632ef5..4b5adf7b9c 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -851,6 +851,11 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
query = trimQuery
}
+ if 1 == groupBy {
+ // 按文档分组时使用搜索设置限制 Search `Group by doc` follows the search setting limit display https://github.com/siyuan-note/siyuan/issues/11667
+ pageSize = Conf.Search.Limit
+ }
+
beforeLen := 36
var blocks []*Block
orderByClause := buildOrderBy(query, method, orderBy)