MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / put_synonym_group

Method put_synonym_group

nodedb/src/engine/sparse/inverted/synonyms.rs:13–21  ·  view source on GitHub ↗

Persist a synonym group to the FTS backend.

(
        &self,
        tid: TenantId,
        rec: &nodedb_fts::SynonymGroupRecord,
    )

Source from the content-addressed store, hash-verified

11impl InvertedIndex {
12 /// Persist a synonym group to the FTS backend.
13 pub fn put_synonym_group(
14 &self,
15 tid: TenantId,
16 rec: &nodedb_fts::SynonymGroupRecord,
17 ) -> crate::Result<()> {
18 self.inner
19 .put_synonym_group(tid.as_u64(), rec)
20 .map_err(|e| inverted_err("put_synonym_group", e))
21 }
22
23 /// Delete a synonym group from the FTS backend. Returns `true` if it existed.
24 pub fn delete_synonym_group(&self, tid: TenantId, name: &str) -> crate::Result<bool> {

Callers 1

Calls 2

inverted_errFunction · 0.85
as_u64Method · 0.45

Tested by

no test coverage detected