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(query_string): carry lenient into field-group scope after merge

xerj-org735dfa17bc62
diff --git a/engine/crates/xerj-query/src/parser.rs b/engine/crates/xerj-query/src/parser.rs
index c583b071e..db741b598 100644
--- a/engine/crates/xerj-query/src/parser.rs
+++ b/engine/crates/xerj-query/src/parser.rs
@@ -2173,6 +2173,9 @@ fn parse_qs_unary(
let scoped = QsFields {
default_field: Some(&field),
fields: &[],
+ // Leniency is decided once per `query_string`, not per clause
+ // (#1284), so a `field:( … )` group inherits the parent's flag.
+ lenient: ctx.lenient,
};
parse_qs_unary(toks, pos, scoped, default_op)
}