瀏覽代碼

:bug: Unable to use `Query Syntax` to search https://github.com/siyuan-note/siyuan/issues/13422

Daniel 6 月之前
父節點
當前提交
7e21eb12e6
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      kernel/model/search.go

+ 0 - 1
kernel/model/search.go

@@ -1412,7 +1412,6 @@ func fullTextSearchCountByRegexp(exp, boxFilter, pathFilter, typeFilter, ignoreF
 }
 }
 
 
 func fullTextSearchByFTS(query, boxFilter, pathFilter, typeFilter, ignoreFilter, orderBy string, beforeLen, page, pageSize int) (ret []*Block, matchedBlockCount, matchedRootCount int) {
 func fullTextSearchByFTS(query, boxFilter, pathFilter, typeFilter, ignoreFilter, orderBy string, beforeLen, page, pageSize int) (ret []*Block, matchedBlockCount, matchedRootCount int) {
-	query = stringQuery(query)
 	table := "blocks_fts" // 大小写敏感
 	table := "blocks_fts" // 大小写敏感
 	if !Conf.Search.CaseSensitive {
 	if !Conf.Search.CaseSensitive {
 		table = "blocks_fts_case_insensitive"
 		table = "blocks_fts_case_insensitive"