pub struct SearchRequest {
pub labels: Vec<String>,
pub where_: Option<Expr>,
pub related: Vec<RelatedSpec>,
pub collects: Vec<CollectSpec>,
pub projection: Vec<(String, String)>,
pub pagination: Pagination,
pub order_by: Vec<(String, bool)>,
pub force_scan: bool,
}Expand description
A records-perspective search over one committed snapshot.
Fields§
§labels: Vec<String>Labels a root record must carry; empty matches every label.
where_: Option<Expr>Boolean predicate the root record must satisfy.
Independent traversal branches; every spec filters existentially so independent one-to-many branches never multiply the root grain.
collects: Vec<CollectSpec>Per-root $collect output shapes attached to each returned record.
projection: Vec<(String, String)>A select of plain field references: each page root becomes a row of
(output name, field) pairs instead of the whole record.
pagination: PaginationOffset/limit applied after matching and ordering.
order_by: Vec<(String, bool)>ORDER BY (field, desc) applied after matching, before pagination.
force_scan: boolTest/oracle switch: when true, the index access path is bypassed and the executor performs a full scan, letting differential tests compare the two paths on identical input.