From d70b72f17b2082687077aaf6c99bfbd8d8e0c7f8 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 13 Jul 2025 10:10:15 +0800 Subject: [PATCH] :art: Improve search result highlighting https://github.com/siyuan-note/siyuan/issues/15284 --- kernel/model/search.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/search.go b/kernel/model/search.go index 662934772..e9168a273 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -1676,6 +1676,7 @@ func fullTextSearchByLikeWithRoot(query, boxFilter, pathFilter, typeFilter, igno } func highlightByFTS(query, typeFilter, id string) (ret []string) { + query = strings.ReplaceAll(query, " ", " OR ") const limit = 256 table := "blocks_fts" if !Conf.Search.CaseSensitive {