~/talk

Building a Cutting Edge Search Engine in Go

Talkat GopherCon AU 2023 · 2023-11-08..11-10· [databases, go]
links:none on file
slides:none on file

searchcode.com indexes 75 billion lines in 40 million projects using Go and a custom index that combines bloom filters and trigrams. code turns into trigrams, each document maps to a sized bloom filter shard (sharded by document length, ~30% bit density), packed into uint64 blocks of 64 docs; queries hash trigrams twice (two hashes gives best false‑positive rate) and logical‑AND rows to skip large ranges. result: single‑machine end‑to‑end searches drop from tens of seconds to about 50 ms, with compact memory and simple for‑loop scanning.

AI-written summary · about

  1. 0:00The problem with search
  2. 2:55Designing a custom index
  3. 4:48Trigrams and index basics
  4. 7:18Postings lists and limits
  5. 9:29Introduction to Bloom filters
  6. 12:21Bloom filter limitations
  7. 15:22Bit-sliced signatures
  8. 17:07Optimizing memory usage
  9. 18:44Document length sharding
  10. 20:02Frequency conscious tuning
  11. 21:55Concurrency and search loop
  12. 24:46Results and conclusion
~/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.