pub struct SelectionStats {
pub documents: usize,
pub lexical_matches: usize,
pub candidates: usize,
pub selected_blocks: usize,
pub selected_sources: usize,
pub query_terms: usize,
pub covered_terms: usize,
pub rendered_tokens: usize,
pub available_tokens: usize,
pub unavailable_roots: usize,
pub limit_rejected_roots: usize,
pub budget_rejected_roots: usize,
}Expand description
Content-free statistics. Coverage counts describe lexical query concepts, not answer quality.
Fields§
§documents: usizeLive documents at query time.
lexical_matches: usizeAuthorized documents matching at least one indexed term.
candidates: usizeRoots considered after bounded expansion.
selected_blocks: usizePhysical blocks in the result.
selected_sources: usizeSources represented by selected blocks, including exact-text aliases.
query_terms: usizeDistinct non-stopword query terms.
covered_terms: usizeQuery terms covered by at least one selected source’s indexed text or locator.
rendered_tokens: usizeFinal exact rendered-text token count, including citations.
available_tokens: usizeAvailable context-text budget after the caller reserve.
Optional roots refused because their hard closure was unavailable or unauthorized.
limit_rejected_roots: usizeOptional roots refused because their hard closure exceeded the candidate bound.
budget_rejected_roots: usizeOptional roots refused because their complete representation did not fit the budget.