mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
🎨 Improve search highlighting https://github.com/siyuan-note/siyuan/issues/13686
This commit is contained in:
parent
6ee4705e2a
commit
da35416ed5
1 changed files with 2 additions and 1 deletions
|
|
@ -640,7 +640,8 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
|
|||
typeFilter := buildTypeFilter(queryTypes)
|
||||
switch queryMethod {
|
||||
case 0:
|
||||
keywords = strings.Split(query, " ")
|
||||
query = stringQuery(query)
|
||||
keywords = highlightByFTS(query, typeFilter, rootID)
|
||||
case 1:
|
||||
keywords = highlightByFTS(query, typeFilter, rootID)
|
||||
case 3:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue