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.

style: cargo fmt

xerj-org8af670615314
diff --git a/engine/crates/xerj-autoindex/src/sync_executor.rs b/engine/crates/xerj-autoindex/src/sync_executor.rs
index 6e803ef72..ec6269fb5 100644
--- a/engine/crates/xerj-autoindex/src/sync_executor.rs
+++ b/engine/crates/xerj-autoindex/src/sync_executor.rs
@@ -802,9 +802,7 @@ impl<'a> EsSyncBackend<'a> {
})?;
let time_bound = |order: &'static str| -> Result<Option<String>> {
match &dataset.time_field {
- Some(field) => {
- self.extreme_time(&dataset.index, &filter, field, order)
- }
+ Some(field) => self.extreme_time(&dataset.index, &filter, field, order),
None => Ok(None),
}
};
@@ -867,9 +865,7 @@ impl<'a> EsSyncBackend<'a> {
.and_then(|src| src.get(field))
.and_then(|v| match v {
Value::String(s) => Some(s.clone()),
- Value::Number(n) => n
- .as_i64()
- .map(xerj_common::schema::epoch_ms_to_iso8601_utc),
+ Value::Number(n) => n.as_i64().map(xerj_common::schema::epoch_ms_to_iso8601_utc),
_ => None,
}))
}