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

Function remove_document

nodedb-spatial/src/geohash_index.rs:311–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn remove_document() {
312 let mut idx = GeohashIndex::new("places", "loc", 6);
313 idx.index_document("doc1", &Geometry::point(10.0, 20.0));
314 idx.remove_document("doc1");
315 assert_eq!(idx.len(), 0);
316 }
317
318 #[test]
319 fn checkpoint_roundtrip() {

Callers

nothing calls this directly

Calls 2

index_documentMethod · 0.45
remove_documentMethod · 0.45

Tested by

no test coverage detected