Skip to main content

stream_full_scan

Function stream_full_scan 

Source
pub fn stream_full_scan(
    root: impl AsRef<Path>,
    pattern: &str,
    opts: SearchOptions,
    sink: impl Fn(&[u8]) + Sync,
) -> Result<()>
Expand description

Pipelined full-tree walk+search (matching ripgrep’s model), streaming through sink. Used by the CLI for fallback queries (no usable trigram) and by the daemon’s cold start before the first build finishes — both fully in-process. Once the index is ready, stream_search handles trigram-accelerable patterns.