(node: &KgNode)
| 13 | const KG_FTS_REVERSE_SCHEMA_VERSION: u32 = 2; |
| 14 | |
| 15 | fn kg_node_fts_text(node: &KgNode) -> String { |
| 16 | let mut text = String::with_capacity(node.id.len() + node.label.len() + 64); |
| 17 | text.push_str(&node.id); |
| 18 | text.push(' '); |
| 19 | text.push_str(&node.label); |
| 20 | if let Some(summary) = &node.summary { |
| 21 | text.push(' '); |
| 22 | text.push_str(summary); |
| 23 | } |
| 24 | text |
| 25 | } |
| 26 | |
| 27 | impl WriteTxn<'_> { |
| 28 | /// Ensure the reverse FTS index exists and rebuild both directions once for |
no test coverage detected