This commit is contained in:
Daniel 2025-07-13 10:10:15 +08:00
parent 46d877b487
commit d70b72f17b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {