mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 17:26:10 +01:00
🎨 Improve searching for move blocks https://github.com/siyuan-note/siyuan/issues/15564#issuecomment-3604599711
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
7154879ddc
commit
c917626d47
1 changed files with 2 additions and 2 deletions
|
|
@ -187,8 +187,8 @@ func SearchDocsByKeyword(keyword string, flashcard bool, excludeIDs []string) (r
|
|||
}
|
||||
}
|
||||
|
||||
if 0 < len(excludeIDs) {
|
||||
condition += fmt.Sprintf(" AND root_id NOT IN ('%s')", strings.Join(excludeIDs, "', '"))
|
||||
for _, excludeID := range excludeIDs {
|
||||
condition += fmt.Sprintf(" AND path NOT LIKE '%%%s%%' ", excludeID)
|
||||
}
|
||||
|
||||
rootBlocks = sql.QueryRootBlockByCondition(condition, Conf.Search.Limit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue