mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +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) {
|
func highlightByFTS(query, typeFilter, id string) (ret []string) {
|
||||||
|
query = strings.ReplaceAll(query, " ", " OR ")
|
||||||
const limit = 256
|
const limit = 256
|
||||||
table := "blocks_fts"
|
table := "blocks_fts"
|
||||||
if !Conf.Search.CaseSensitive {
|
if !Conf.Search.CaseSensitive {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue