pub struct SearchIndexSpec {
pub kind: SearchKind,
pub index_name: SmallName,
pub for_expr: Expr,
pub analyzer: Option<Expr>,
pub inner_where: Option<Expr>,
pub offset_expr: Option<Expr>,
pub limit_expr: Expr,
}Expand description
CIP-225 <index specification clause>: { VECTOR | FULLTEXT } INDEX <index name> <index for and control clause>.
Fields§
§kind: SearchKindCIP-225: which index kind the specification names.
index_name: SmallName<index name specification>: the literal name of an existing index.
for_expr: Expr<for clause>’s <value expression> – the search query.
analyzer: Option<Expr>CIP-225 WITH ANALYZER <expr> (fulltext only).
inner_where: Option<Expr>CIP-240 “Vector Search with Single-stage Filtering”: the optional
inner WHERE <search condition> between FOR <expr> and LIMIT <expr>. Its <search condition> must decompose into one or more
<binding variable reference> <static property reference> <simple comp op> <arithmetic value expression> predicates joined by AND
(or a form rewritable into that, e.g. NOT x.prop or flipped
operands) – enforced by relate_front::search_filter, not here;
the parser accepts any general <expression> here, exactly like
MatchClause.where_expr.
offset_expr: Option<Expr>CIP-225 <offset clause> (SKIP/OFFSET).
limit_expr: Expr<limit clause>’s <value expression> (mandatory for an index
source, in and out of a COMBINE).