pub fn search(corpus: &CorpusRoot, query: &SearchQuery) -> Result<SearchResult>Expand description
Run a regular-expression search across the corpus.
The walk and per-file search run in parallel across ripgrepās worker
threads (the same engine as the rg binary). To keep results reproducible
regardless of thread scheduling, every matching line is collected and then
deterministically ordered by (path, line, match-before-context) before the
result cap is applied. The only non-deterministic bound is
max_files_walked, which acts purely as a runaway-corpus safety valve and
is not reached on the bounded corpora used for evaluation or testing.