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.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
autoindex: name live/expected counts and indices in the record-count verify abort (#2671)
xerj-org8908cc642d7c
diff --git a/engine/crates/xerj-autoindex/src/sync_executor.rs b/engine/crates/xerj-autoindex/src/sync_executor.rsindex 233d28d05..ee2c9dc2b 100644--- a/engine/crates/xerj-autoindex/src/sync_executor.rs+++ b/engine/crates/xerj-autoindex/src/sync_executor.rs@@ -2341,13 +2341,18 @@ impl SyncOperationBackend for EsSyncBackend<'_> {// makes it fail loud either way.for group in changed_groups {let mut records = 0u64;- for index in group_indices(group, &desired.plan)? {- records += record_counts[&index][&group.content_id];+ let indices = group_indices(group, &desired.plan)?;+ for index in &indices {+ records += record_counts[index][&group.content_id];}anyhow::ensure!(records == group.expected_records,- "live record count disagrees with desired group {}",- group.group_id+ "live record count disagrees with desired group {}: live_records={records} \+ expected_records={} indices=[{}]; a resume checks the same live indices, \+ so it stops here again until they are rebuilt",+ group.group_id,+ group.expected_records,+ indices.join(", "));let mut semantic = 0u64;for slug in &group.dataset_slugs {