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): carry lenient into scoped field:() group after merge (#1284 + #1298)

xerj-orga4f80283756c
diff --git a/engine/crates/xerj-query/src/parser.rs b/engine/crates/xerj-query/src/parser.rs
index 5cd95daee..c1ad18ea9 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: &[],
+ // Inherit the clause's leniency (#1284) into the scoped
+ // `field:( … )` group (#1298), as every other recursion
+ // site in this parser does.
+ lenient: ctx.lenient,
};
parse_qs_unary(toks, pos, scoped, default_op)
}