~/talk

In Memory Full Text Search with Kotlin

Talkat Android Worldwide 2022 · 2022-01-25..01-26· [kotlin, machine-learning]
links:none on file
slides:none on file

Builds an in-memory inverted index in Kotlin using tokenization, lowercasing and Porter-style stemming, then stores tokens → document lists and ranks with TF‑IDF scoring. Uses Kotlin Coroutines for concurrent document processing and a compressed trie (a Patricia trie) for memory efficiency. Publishes the result as the Lucilla library and reports a stress test of ~1,000,000 documents using about 500 MB for 1M docs, with fuzzy search and boosts planned.

AI-written summary · about

  1. 0:00Introduction
  2. 0:51Why Care
  3. 5:08Full Text Search
  4. 8:12Text Extraction
  5. 12:35Reducing Text
  6. 14:43Building the Index
  7. 16:51Searching the Index
  8. 23:36Questions
~/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.