Skip to main content

search_mmap

Function search_mmap 

Source
pub fn search_mmap<F: Fn(u64) -> bool>(
    mmap: &MmapPostingData,
    dim_map: &HashMap<u32, usize>,
    query: &SparseVector,
    limit: usize,
    filter: &F,
) -> Vec<(u64, f32)>
Expand description

Top-limit search straight from the mapping, without loading anything into RAM. dim_map is only used for a version 1 or 2 file; a version 3 one carries its own dimensions (see [dims_for]).