pub struct SearchClause {
pub binding_var: SmallName,
pub spec: SearchSpec,
pub score_var: Option<SmallName>,
}Expand description
CIP-224 <search clause>: the SEARCH ... IN (<source specification clause>) [SCORE AS ...] subclause of MatchClause.
binding_var/score_var (and each nested index_name) are plain
identifiers (never a general expression, a parameter, or a property
access – Rules 1, 4, 5) rather than Expr, matching the grammar’s own
<binding variable reference> / <index name specification> /
<binding variable> productions.
Fields§
§binding_var: SmallName<binding variable reference>: must name a variable declared by the
same <match statement>’s own pattern (Rule 4).
spec: SearchSpecCIP-278 <source specification clause>: one index search, or a
COMBINE of two or more weighted sources fused with WRRF.
score_var: Option<SmallName>[SCORE AS <binding variable>] – None when the score column is
omitted (results are still ordered by descending score either way).