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): field-qualified group inherits query_string leniency (#1284 + #1298)

xerj-orgf1f019b84053
diff --git a/engine/crates/xerj-query/src/parser.rs b/engine/crates/xerj-query/src/parser.rs
index 5cd95daee..20a7c41a9 100644
--- a/engine/crates/xerj-query/src/parser.rs
+++ b/engine/crates/xerj-query/src/parser.rs
@@ -2169,6 +2169,11 @@ fn parse_qs_unary(
let scoped = QsFields {
default_field: Some(&field),
fields: &[],
+ // #1284 + #1298 reconcile: leniency is decided once per
+ // `query_string` and stamped on every leaf, field-qualified
+ // ones included, so a `field:( … )` group inherits the
+ // enclosing context's flag rather than resetting it.
+ lenient: ctx.lenient,
};
parse_qs_unary(toks, pos, scoped, default_op)
}