ARCHOS 525 BLUEPRINT · /d/dgm_int-search-engine
Search Engine (Elasticsearch / Lucene) Internals (Inverted Index & Segments)
8 COMPONENTS · 7 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-search-engine) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-search-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-search-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Search Engine (Elasticsearch / Lucene) Internals (Inverted Index & Segments) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Search / Index API"]
coord_1["Coordinating Node"]
anl_2["Analyzer & Buffer"]
tlog_3[("Translog")]
seg_4[("Lucene Segments")]
bm25_5["BM25 + DocValues"]
merge_6["Segment Merger"]
downstream_7["Downstream & OTel"]
client_0 -->|"1. Index / · HTTPS"| coord_1
coord_1 -->|"2a. Analyze · HTTP"| anl_2
coord_1 -->|"2b. Append · fsync"| tlog_3
anl_2 -.->|"3. 1s refresh · Lucene"| seg_4
bm25_5 -->|"Intersect · BM25"| seg_4
merge_6 -->|"Merge & · Merge"| seg_4
seg_4 -.->|"4. Emit / · OTLP/API"| downstream_7COMPONENT STACK (8)
- Search / Index APISTATELESSJSON Docs & Queries
- Coordinating NodeSTATELESSScatter-gather across shards
- Analyzer & BufferSTATELESSTokenize, stem & in-RAM buffer
- TranslogSTATEFULfsync durability before 1s refresh
- Lucene SegmentsSTATEFULFST term dict + posting lists
- BM25 + DocValuesSTATELESSRelevance score + aggregations
- Segment MergerSTATELESSCompacts segments & expunges del
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (7)
- Search / Index API → Coordinating Node (Index /)[HTTPS]
- Coordinating Node → Analyzer & Buffer (Analyze)[HTTP]
- Coordinating Node → Translog (Append)[fsync]
- Analyzer & Buffer → Lucene Segments (1s refresh)[Lucene]
- BM25 + DocValues → Lucene Segments (Intersect)[BM25]
- Segment Merger → Lucene Segments (Merge &)[Merge]
- Lucene Segments → Downstream & OTel (Emit /)[OTLP/API]