🔥 移除 设置 - 搜索 - 虚拟引用 - 关键字数量限制 Fix https://github.com/siyuan-note/siyuan/issues/7634

This commit is contained in:
Liang Ding 2023-03-12 16:29:14 +08:00
parent 003a4b3344
commit 66f6388c3d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 9 additions and 30 deletions

View file

@ -308,9 +308,6 @@ func InitConf() {
if 1 > Conf.Search.BacklinkMentionKeywordsLimit {
Conf.Search.BacklinkMentionKeywordsLimit = 512
}
if 1 > Conf.Search.VirtualRefKeywordsLimit {
Conf.Search.VirtualRefKeywordsLimit = 512
}
if nil == Conf.Stat {
Conf.Stat = conf.NewStat()

View file

@ -225,11 +225,6 @@ func getVirtualRefKeywords(docName string) (ret []string) {
// 虚拟引用排除当前文档名 https://github.com/siyuan-note/siyuan/issues/4537
ret = gulu.Str.ExcludeElem(ret, []string{docName})
ret = prepareMarkKeywords(ret)
// 在 设置 - 搜索 中分别增加虚拟引用和反链提及 `关键字数量限制` https://github.com/siyuan-note/siyuan/issues/6603
if Conf.Search.VirtualRefKeywordsLimit < len(ret) {
ret = ret[:Conf.Search.VirtualRefKeywordsLimit]
}
return
}