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
fix(autoindex): tell .odp owners to save as .pptx, not export to PDF
Tom Villanie90d739500a7
diff --git a/engine/crates/xerj-autoindex/src/sniff.rs b/engine/crates/xerj-autoindex/src/sniff.rsindex e6168f402..8a2164896 100644--- a/engine/crates/xerj-autoindex/src/sniff.rs+++ b/engine/crates/xerj-autoindex/src/sniff.rs@@ -1130,7 +1130,7 @@ pub fn unsupported_document_advice(binary_kind: &str) -> Option<String> {"xlsb" => ("Excel binary workbook", "save it as .xlsx"),"odt" => ("OpenDocument text", "export it as DOCX or PDF"),"ods" => ("OpenDocument spreadsheet", "save it as .xlsx"),- "odp" => ("OpenDocument presentation", "export it as PDF"),+ "odp" => ("OpenDocument presentation", "save it as .pptx"),"epub" => ("EPUB e-book", "convert it to PDF"),_ => return None,};@@ -4120,6 +4120,15 @@ mod zip_container_sniff_tests {assert!(unsupported_document_advice("xlsb").unwrap().contains("Excel binary workbook"));+ // The hint names the format autoindex extracts best for that kind of+ // document: a presentation saved as .pptx keeps one record per slide,+ // which a PDF export also gives but without the slide titles and notes.+ assert!(unsupported_document_advice("ods")+ .unwrap()+ .contains(".xlsx"));+ assert!(unsupported_document_advice("odp")+ .unwrap()+ .contains(".pptx"));for k in ["zip", "tar", "png", "docx", "pptx", "xlsx", "unknown", ""] {assert_eq!(unsupported_document_advice(k), None, "{k}");}