From ec01248346a93a9ca13f86970998e239c62132e4 Mon Sep 17 00:00:00 2001
From: ai_xiaopei <xiaopei@aisim.cn>
Date: Thu, 03 Sep 2026 14:15:59 +0800
Subject: [PATCH] feat(draft): draft list 支持按一级目录过滤,Type 改从路径提取

---
 internal/index/fts.go |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/internal/index/fts.go b/internal/index/fts.go
index 07bc115..954eaaf 100644
--- a/internal/index/fts.go
+++ b/internal/index/fts.go
@@ -32,6 +32,7 @@
 	_, err := s.db.Exec(`
 		INSERT INTO nodes_fts(rowid, title, content, tags, entities)
 		SELECT id, title, content_fts, tags, entities FROM nodes
+		WHERE node_type = 'file'
 	`)
 	return err
 }

--
Gitblit v1.10.0