Skip to main content

fts_text_leg_or_err

Function fts_text_leg_or_err 

Source
pub fn fts_text_leg_or_err<T>(
    result: Result<Vec<T>, RuntimeError>,
    context: &'static str,
    query: &str,
) -> RuntimeResult<Vec<T>>
Expand description

Resolve an FTS text-leg search result, failing loud on parser syntax errors instead of silently degrading to vector-only fusion.

A genuine backend outage (pool exhaustion, connection failure, etc.) is NOT a bad query and is returned as-is via the fallthrough Err(e) arm; is_fts5_syntax_error is the narrow gate that tells the two apart.