Inverted index
Diffuse Leapfrog 2030 Doctrine and Glossary formatting
@@ -19,7 +19,7 @@ paired_with: service-search.es.md **service-search** is a Ring 2 knowledge-and-processing service in the PointSav three-ring architecture. It provides full-text search across the platform's document archive through a static binary inverted index built in Rust using the Tantivy library. Because the index is a static binary structure rather than a live database, the entire search index can be copied to portable media and queried on any machine without additional software dependencies. The service guarantees compliance with the DARP (Data Archive and Retrieval Protocol) standard. ## Overview ## Architectural Baseline An inverted index works by building a compressed map from every word in the corpus to the list of documents that contain it — analogous to the index at the back of a reference book. At query time, the service looks up the query terms in this map and returns matching documents in microseconds, regardless of corpus size. Tantivy, the underlying Rust library, is designed for high-throughput indexing and low-latency retrieval on commodity hardware. @@ -27,7 +27,7 @@ An inverted index works by building a compressed map from every word in the corp service-search occupies **Ring 2 — Knowledge and Processing** in the three-ring architecture. Ring 2 is multi-tenant via `moduleId` namespacing and operates deterministically without AI inference. service-search's role within Ring 2 is retrieval: it answers queries against the indexed corpus and returns ranked document references that Ring 2 or Ring 3 services use for downstream processing. The service does not generate content or classify documents — it locates them. ## Architecture ## Structural Organization of Components The index is built as a static binary file. Key architectural properties: @@ -56,7 +56,7 @@ The service is integrated with `app-workplace-presentation` for interactive sear ## References - DOCTRINE.md §XI — Ring 2 knowledge-and-processing architecture - §XI — Ring 2 knowledge-and-processing architecture - `pointsav-monorepo/service-search/` — implementation crate - Tantivy documentation — <https://docs.rs/tantivy/> - DARP (Data Archive and Retrieval Protocol) — compliance requirement governing the index portability guarantee