Skip to main content

get_or_load

Function get_or_load 

Source
pub fn get_or_load(cache: &SharedBm25Cache, root: &Path) -> Arc<BM25Index> 
Expand description

Get the BM25 index from cache if available and fresh, otherwise load/build, cache it, and return. Uses Arc to avoid cloning the entire index.