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(api): persist date_detection through the PUT /_mapping merge path

xerj-org4834db9a92ff
diff --git a/engine/crates/xerj-api/src/es_compat.rs b/engine/crates/xerj-api/src/es_compat.rs
index e96c424e5..7928afc2a 100644
--- a/engine/crates/xerj-api/src/es_compat.rs
+++ b/engine/crates/xerj-api/src/es_compat.rs
@@ -1433,6 +1433,9 @@ pub async fn put_mapping(
if let Some(dyn_val) = body.get("dynamic") {
obj.insert("dynamic".into(), dyn_val.clone());
}
+ if let Some(dd) = body.get("date_detection") {
+ obj.insert("date_detection".into(), dd.clone());
+ }
} else {
existing = body.clone();
}