Avoiding The Search Hall Of Shame
summary
Lots of obviously bad patterns get called out: grep/SQL LIKE table scans reads gigs into RAM and slogs every query, while an inverted index (hash lookup of terms → documents) makes lookups fast. Pure‑Python indexes like Whoosh pure‑Python slow are simple but IO‑bound; Xapian (zapen) is faster; Solr (PySolr) works well but struggles with many masters; Elasticsearch (p.elasticsearch) is best for clusters and ops but is JVM‑RAM hungry. Concrete wins: denormalize documents, use facets, n‑gram autocomplete, and “more like this” which boosts pageviews ~175%.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:20Who am I
- 1:50Things to consider
- 3:25Assumptions
- 4:13The Worst
- 8:30Inverted Index
- 9:49Pure Python
- 11:53Micro Search
- 13:41Whoosh
- 21:55Data Relations
- 25:40Updating Data
- 26:35Query Performance
- 27:17User Interface
- 27:57Story Time
- 31:39Faceting
- 35:05Autocomplete
- 37:02haystack
- 37:44where are we
- 38:15related content
- 39:32geospatial search
- 42:21Questions
