pub fn parse_query(query: &str) -> Vec<Vec<Term>>Expand description
Parse a query into OR-groups of AND-terms (public, oracle-compatible).
Grammar: query := group ('OR' group)*
group := term ('AND'? term)*
term := '-'? <word> '*'?
Differences from v2 internal grammar: phrases ("...") are NOT supported;
each quoted or unquoted word is treated as a plain term. This form is used
by the sim-harness oracle and any caller that needs a stable external API.
Token values in returned Terms are Snowball-English-stemmed for non-prefix
terms. Callers must stem document tokens with stem before comparing.