Skip to main content

try_evaluate

Function try_evaluate 

Source
pub fn try_evaluate<B: Postings, S: TokenStore<B>>(
    store: &S,
    expr: &str,
) -> Result<B, QueryError>
Expand description

Evaluate a query, surfacing refusals.

A conflict refusal is not the same as an empty result and must not be collapsed into one: “the sources contradict each other” is information the caller can act on, and “no rows matched” is an answer.