Skip to content

MiniLucene Tutorial

This eleven-chapter book follows one lexical-search system from text analysis to immutable storage, NRT visibility, scoring, query parsing, and merge. Read in order for the full mechanism chain; every chapter includes source anchors, measured experiments, Lucene differences, and exercises with folded answers.

  1. Meet MiniLucene
  2. The Analysis Chain
  3. The Inverted Index
  4. The Disk Codec
  5. Segments and Near-Real-Time Visibility
  6. Deletes and Updates
  7. Commit Atomicity
  8. Scoring and Top-K
  9. The Query Language
  10. Merge and Beyond
  11. Doc-at-a-Time Query Execution

Use the behavior matrix as the executable contract and the MiniLucene-to-Lucene mapping when comparing the teaching kernel with Apache Lucene.