qexpr
Typed query expressions (query algebra) for retrieval systems.
Semantics
- Associativity:
And/Orare n-ary and associative. Flattening is allowed. - Duplicates:
And([A, A])is semantically equivalent toAnd([A])(set semantics), but the AST preserves them. - Empty:
And([])isTrue(universe);Or([])isFalse(empty set).
What it is
This crate is intentionally not a parser. Parsing is product-specific. The goal here is a small, stable AST for query meaning that multiple systems can compile into their own execution plans.
Usage
[]
= "0.1.0"
Example:
use ;
let q = And;
validate.unwrap;
Development