~/talk

Writing a full-text search engine in TypeScript

Talkat NDC Oslo 2022 · 2022-09-26..09-30· [typescript, databases]
slides:none on file

Builds a TypeScript full‑text engine called Lira that runs across Node, Deno, browsers, React Native and Cloudflare Workers, using inverted indexes, prefix trees, Snowball stemming and Levenshtein for typo tolerance. Benchmarks on 1,000,000 IMDb records return queries in ~41 microseconds; supports 23 languages, sharding and msgpack serialization. Deploys indexes to the edge via Nebula with automatic sharding and Lambda/Workers restore. inverted index + prefix trie, 1,000,000 IMDb entries → 41µs searches

AI-written summary · about

  1. 0:00Introduction
  2. 2:27What is fulltext search
  3. 5:25Tokenization
  4. 12:53Noble Algorithm
  5. 14:50Data Structures
  6. 15:46Hashmap
  7. 27:27JavaScript runtimes
  8. 29:53Functional programming vs imperative programming
  9. 33:27Dynamic programming
  10. 42:17Edit Distance
  11. 43:05Lira
  12. 43:30How it works
  13. 44:02Search properties
  14. 45:06Criminal Minds
  15. 46:41Format
  16. 47:55Offline search
  17. 48:11Nebula
  18. 48:44Lira YAML
  19. 48:57Schema definition
  20. 49:52Deployment
  21. 50:16Data Consistency
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.