Skip to main content

expand

Function expand 

Source
pub fn expand(
    store: &mut Store,
    ctx: &PlanContext,
    doc_store: &dyn DocStore,
    req: &SelectRequest,
    semantic: HashMap<String, SemanticVec>,
) -> Result<Expansion>
Expand description

Run the selector and expand it (module docs; the reference’s compileSelection), or — without a selector (3.2) — desugar the effects and evaluate their slots in their own targets’ row scopes (expand_plain). semantic is the embedded phrases of the selector (crate::query::embed_phrases). The store is borrowed mutably only for the prefix plans that settle bare $new.n kinds; nothing is written.