From fc47230331f3274a6a5870db5a8da3b034e17286 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 11 Dec 2024 17:43:14 +0800 Subject: [PATCH] :art: Improve search https://github.com/siyuan-note/siyuan/issues/13430 --- kernel/model/search.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/search.go b/kernel/model/search.go index 521800df7..68c8fdc6a 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -1027,6 +1027,7 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b boxFilter := buildBoxesFilter(boxes) pathFilter := buildPathsFilter(paths) if 2 > len(strings.Split(strings.TrimSpace(query), " ")) { + query = stringQuery(query) blocks, matchedBlockCount, matchedRootCount = fullTextSearchByQuerySyntax(query, boxFilter, pathFilter, typeFilter, ignoreFilter, orderByClause, beforeLen, page, pageSize) } else { docMode = true // 文档全文搜索模式 https://github.com/siyuan-note/siyuan/issues/10584