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.

Merge remote-tracking branch 'origin/main' into fix-pr24

xerj-org88690bd81894
diff --cc engine/crates/xerj-engine/src/index.rs
index b0ac9b28a,527b2cce2..23995b2d6
--- a/engine/crates/xerj-engine/src/index.rs
+++ b/engine/crates/xerj-engine/src/index.rs
@@@ -1178,10 -1878,23 +1905,26 @@@ impl Index
let index = Arc::new(Self {
name,
schema: Arc::new(RwLock::new(schema)),
+ date_detection: AtomicBool::new(true),
+ has_date_fields: AtomicBool::new(has_dates),
+ date_format_exclusions: std::sync::RwLock::new(Arc::new(Default::default())),
max_concurrent_queries: Arc::new(Semaphore::new(64)),
+ #[cfg(test)]
+ test_scan_checkpoint_delay_ms: Arc::new(AtomicU64::new(0)),
+ #[cfg(test)]
+ test_scan_checkpoint_count: Arc::new(AtomicU64::new(0)),
+ #[cfg(test)]
+ test_stored_value_load_delay_ms: Arc::new(AtomicU64::new(0)),
+ #[cfg(test)]
+ test_stored_value_load_count: Arc::new(AtomicU64::new(0)),
+ #[cfg(test)]
+ test_stored_value_load_pause_before_publish: Arc::new(
+ std::sync::atomic::AtomicBool::new(false),
+ ),
+ #[cfg(test)]
+ test_stored_value_load_ready_to_publish: Arc::new(std::sync::atomic::AtomicBool::new(
+ false,
+ )),
enrichments: Arc::new(RwLock::new(HashMap::new())),
store,
memtable: Arc::new(memtable),