pub fn anchor(
root: &Path,
q: &Search,
open: &[Arc<Open>],
) -> Result<(Frame, Stats)>Expand description
Where an investigation starts: the frame around what a search matched.
The predicate is the one crate::query::search_open runs, evaluated by the
same code — this harvests ids where a search renders rows. That matters for
a reason beyond saving a scan loop: “the frame around what I am looking at”
is only true if what I am looking at is decided identically, and two
predicate evaluators would drift.
q.limit and q.after are ignored. A frame is bounded by MAX_TRACES and
MAX_ENTITIES; a page size bounds what is rendered, which is a different
question and a different call.