From a5704eef25a3e48a8cdf33fcdbc2982ef065477f Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Tue, 26 Aug 2025 22:46:33 +0530 Subject: [PATCH] Use load instead of view on index --- mobile/apps/photos/rust/src/api/usearch_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/apps/photos/rust/src/api/usearch_api.rs b/mobile/apps/photos/rust/src/api/usearch_api.rs index 847e86d665..542c808515 100644 --- a/mobile/apps/photos/rust/src/api/usearch_api.rs +++ b/mobile/apps/photos/rust/src/api/usearch_api.rs @@ -32,8 +32,8 @@ impl VectorDB { if file_exists { println!("Loading index from disk."); - // Creates a view of the index from a file without loading it into memory. https://docs.rs/usearch/latest/usearch/struct.Index.html#method.view - db.index.view(file_path).expect("Failed to load index"); + // Loads the index into memory. https://docs.rs/usearch/latest/usearch/struct.Index.html#method.load + db.index.load(file_path).expect("Failed to load index"); } else { println!("Creating new index."); db.save_index();