From 0b31e72779c0f56422583977edd4140c00efbb7f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 30 Oct 2022 23:15:24 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E7=BC=96=E8=BE=91=E5=99=A8=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=8A=A0=E8=BD=BD=E5=9D=97=E6=95=B0=E7=94=B1=E5=AE=9A?= =?UTF-8?q?=E5=80=BC=E6=94=B9=E4=B8=BA=E5=8F=AF=E9=85=8D=E7=BD=AE=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/6415?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/setting.go | 2 +- kernel/model/conf.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/api/setting.go b/kernel/api/setting.go index 199060186..3848dd326 100644 --- a/kernel/api/setting.go +++ b/kernel/api/setting.go @@ -204,7 +204,7 @@ func setSearch(c *gin.Context) { } if 1 > s.Limit { - s.Limit = 32 + s.Limit = 64 } oldCaseSensitive := model.Conf.Search.CaseSensitive diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 211507130..867e9b09a 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -257,10 +257,16 @@ func InitConf() { if 1 > Conf.Editor.HistoryRetentionDays { Conf.Editor.HistoryRetentionDays = 7 } + if 1 > Conf.Editor.DynamicLoadBlocks { + Conf.Editor.DynamicLoadBlocks = 128 + } if nil == Conf.Search { Conf.Search = conf.NewSearch() } + if 1 > Conf.Search.Limit { + Conf.Search.Limit = 64 + } if nil == Conf.Stat { Conf.Stat = conf.NewStat()