pub struct SearchReport {Show 17 fields
pub query: String,
pub mode: String,
pub retrieval_mode: String,
pub source: String,
pub strategy: String,
pub start_index: usize,
pub total: usize,
pub observed_total: usize,
pub total_is_complete: bool,
pub returned: usize,
pub searched_files: usize,
pub searched_bytes: usize,
pub candidate_files: usize,
pub retained_bytes: usize,
pub truncated: bool,
pub truncation_reason: Option<String>,
pub results: Vec<SearchMatch>,
}Expand description
Search report returned by CLI and MCP adapters.
Fields§
§query: StringSearch pattern.
mode: StringSearch mode: literal, regex, or fuzzy.
retrieval_mode: StringRetrieval family selected by the caller.
source: StringSource used for broad repository search.
strategy: StringCandidate strategy used while preserving exact lexical semantics.
start_index: usizePagination start index.
total: usizeMatches observed before pagination and bounded early stop.
observed_total: usizeAlias for total that makes bounded search semantics explicit.
total_is_complete: boolWhether total/observed_total is known to be the exhaustive match count.
returned: usizeReturned matches after pagination.
searched_files: usizeIndexed files opened while serving the query.
searched_bytes: usizeSource bytes read while serving the query.
candidate_files: usizeMetadata-only FTS candidates considered before exact verification.
retained_bytes: usizeApproximate retained result bytes before adapter serialization.
truncated: boolWhether the search stopped after satisfying the requested page.
truncation_reason: Option<String>Stable first bound that stopped exhaustive search, when applicable.
results: Vec<SearchMatch>Search matches.