mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve search result highlighting https://github.com/siyuan-note/siyuan/issues/15284
This commit is contained in:
parent
46d877b487
commit
d70b72f17b
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue