Skip to content

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

:art: Improve indexing

Danielb62384428b51
diff --git a/kernel/sql/database.go b/kernel/sql/database.go
index 80110567d9..94641d793b 100644
--- a/kernel/sql/database.go
+++ b/kernel/sql/database.go
@@ -741,6 +741,9 @@ func buildSpanFromNode(n *ast.Node, tree *parse.Tree, rootID, boxID, p string) (
if ast.NodeInlineHTML == n.Type {
// 没有行级 HTML,只有块级 HTML,这里转换为块
+ n.ID = ast.NewNodeID()
+ n.SetIALAttr("id", n.ID)
+ n.SetIALAttr("updated", n.ID[:14])
b, attrs := buildBlockFromNode(n, tree)
b.Type = ast.NodeHTMLBlock.String()
blocks = append(blocks, b)