Skip to content

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

:bug: Search type "database" cannot be saved https://github.com/siyuan-note/siyuan/issues/10462

Daniel59f91dfc5486
diff --git a/kernel/model/storage.go b/kernel/model/storage.go
index 8cfbf17b70..397dc1339e 100644
--- a/kernel/model/storage.go
+++ b/kernel/model/storage.go
@@ -174,18 +174,19 @@ type Criterion struct {
}
type CriterionTypes struct {
- MathBlock bool `json:"mathBlock"`
- Table bool `json:"table"`
- Blockquote bool `json:"blockquote"`
- SuperBlock bool `json:"superBlock"`
- Paragraph bool `json:"paragraph"`
- Document bool `json:"document"`
- Heading bool `json:"heading"`
- List bool `json:"list"`
- ListItem bool `json:"listItem"`
- CodeBlock bool `json:"codeBlock"`
- HtmlBlock bool `json:"htmlBlock"`
- EmbedBlock bool `json:"embedBlock"`
+ MathBlock bool `json:"mathBlock"`
+ Table bool `json:"table"`
+ Blockquote bool `json:"blockquote"`
+ SuperBlock bool `json:"superBlock"`
+ Paragraph bool `json:"paragraph"`
+ Document bool `json:"document"`
+ Heading bool `json:"heading"`
+ List bool `json:"list"`
+ ListItem bool `json:"listItem"`
+ CodeBlock bool `json:"codeBlock"`
+ HtmlBlock bool `json:"htmlBlock"`
+ EmbedBlock bool `json:"embedBlock"`
+ DatabaseBlock bool `json:"databaseBlock"`
}
type CriterionReplaceTypes struct {