Skip to main content

run_with_index

Function run_with_index 

Source
pub async fn run_with_index(
    config: FileSearchConfig,
    index_cache: &FileIndexCache,
) -> Result<FileSearchResults>
Expand description

Run fuzzy file search using a pre-computed file index.

This is much faster than run() for repeated queries on the same directory because it avoids re-traversing the filesystem.

§Arguments

  • config - File search configuration
  • index_cache - Shared cache for the pre-computed file index

§Returns

FileSearchResults containing matched files and total match count.