Skip to main content

compile_search

Function compile_search 

Source
pub fn compile_search(ast: &QueryAst) -> Result<CompiledSearch, CompileError>
Expand description

Compile a QueryAst into a CompiledSearch describing an adaptive text-search execution.

Unlike compile_query, this path does not emit SQL directly: the coordinator owns the search SELECT so it can project the richer row shape (score, source, snippet, projection id) that flat queries do not need.

ยงErrors

Returns CompileError::MissingTextSearchStep if the AST contains no QueryStep::TextSearch step.