Keyword search: an inverted index lists the documents each word is in; BM25 scores them by how rare the word is, how often it appears (with diminishing returns) and how long the document is. The best three come from a heap.
This interactive visualization needs JavaScript.