Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(xerj-query): stamp lenient on the field-scoped QsFields

xerj-orgdc74e95cb7e8
diff --git a/engine/crates/xerj-query/src/parser.rs b/engine/crates/xerj-query/src/parser.rs
index 5cd95daee..d57f354e2 100644
--- a/engine/crates/xerj-query/src/parser.rs
+++ b/engine/crates/xerj-query/src/parser.rs
@@ -2169,6 +2169,10 @@ fn parse_qs_unary(
let scoped = QsFields {
default_field: Some(&field),
fields: &[],
+ // #1284/#1298 collision: the scoped group narrows the default
+ // field but inherits the enclosing query_string's lenient flag,
+ // exactly as the leaves below stamp `ctx.lenient`.
+ lenient: ctx.lenient,
};
parse_qs_unary(toks, pos, scoped, default_op)
}