Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: Support for searching asset content https://github.com/siyuan-note/siyuan/issues/8874

Danield40632cddbf5
diff --git a/kernel/model/asset_content.go b/kernel/model/asset_content.go
index be4559edb0..6221391680 100644
--- a/kernel/model/asset_content.go
+++ b/kernel/model/asset_content.go
@@ -143,7 +143,7 @@ func assetContentFieldRegexp(exp string) string {
func fullTextSearchAssetContentCountByRegexp(exp, typeFilter string) (matchedAssetCount int) {
table := "asset_contents_fts_case_insensitive"
- fieldFilter := fieldRegexp(exp)
+ fieldFilter := assetContentFieldRegexp(exp)
stmt := "SELECT COUNT(path) AS `assets` FROM `" + table + "` WHERE " + fieldFilter + " AND ext IN " + typeFilter
result, _ := sql.QueryAssetContentNoLimit(stmt)
if 1 > len(result) {