MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / kg_node_fts_text

Function kg_node_fts_text

atomic-core/src/pristine/txn/write/triples.rs:15–25  ·  view source on GitHub ↗
(node: &KgNode)

Source from the content-addressed store, hash-verified

13const KG_FTS_REVERSE_SCHEMA_VERSION: u32 = 2;
14
15fn 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
27impl WriteTxn<'_> {
28 /// Ensure the reverse FTS index exists and rebuild both directions once for

Callers 2

ensure_kg_fts_schemaMethod · 0.85
upsert_kg_nodeMethod · 0.85

Calls 2

lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected