search engine: first draft of code and also (slightly desynchronized) chapter text!

Possibly. Can you elaborate on what you mean by "just index a flat directory"?