Skip to main content

Crate qexpr

Crate qexpr 

Source
Expand description

qexpr: typed query expressions (query algebra).

Goal: provide a small, stable AST for common retrieval query operators without committing to any particular index backend or scoring model.

This is intentionally not a parser. Parsing (syntax) is product-specific. This crate is about a shared, typed meaning that multiple systems can compile down to their preferred execution plan.

Structs§

FieldName
A field name.
Near
A proximity query over ordered terms.
Phrase
A phrase of ordered terms.
Term
A normalized term token.

Enums§

QExpr
A query expression for retrieval.
ValidateError
Structural validation errors for QExpr.

Functions§

validate
Validate a query expression for basic structural invariants.