mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 数据历史文档中支持操作类型过滤 https://github.com/siyuan-note/siyuan/issues/5754
This commit is contained in:
parent
150ebe2d1a
commit
49e6d708d6
1 changed files with 2 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ func FullTextSearchHistory(query, box, op string, typ, page int) (ret []*History
|
||||||
}
|
}
|
||||||
|
|
||||||
if HistoryTypeDoc == typ {
|
if HistoryTypeDoc == typ {
|
||||||
stmt += " AND path LIKE '%/" + box + "/%'"
|
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
||||||
} else if HistoryTypeAsset == typ {
|
} else if HistoryTypeAsset == typ {
|
||||||
stmt += " AND path LIKE '%/assets/%'"
|
stmt += " AND path LIKE '%/assets/%'"
|
||||||
}
|
}
|
||||||
|
|
@ -494,6 +494,7 @@ func ReindexHistory() (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sql.InitHistoryDatabase(true)
|
||||||
lutEngine := NewLute()
|
lutEngine := NewLute()
|
||||||
for _, historyDir := range historyDirs {
|
for _, historyDir := range historyDirs {
|
||||||
if !historyDir.IsDir() {
|
if !historyDir.IsDir() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue