~/talk

Unspoken overhead of the Inverted Index

Talkat OpenSearchCon Europe 2024 · 2024-05-06..05-07· [databases]
links:none on file
slides:none on file

Explains why the inverted index is built per text field, how Lucene segments merge, and why bulk inserts help; shows analysis steps with the term vectors API and how analyzers produce tokens that become terms; demonstrates a JVM stack trace generating 56 terms that mostly never get searched; highlights choices — use keyword fields, disable doc values when not aggregating, or pick match_only_text to drop positions — and reports community benchmarks of roughly ~10% storage savings for match_only_text while acknowledging query and memory tradeoffs.

AI-written summary · about

  1. 0:00Inverted index basics
  2. 1:27Apache Lucene in OpenSearch
  3. 3:35Reversed search logic
  4. 5:19Building index segments
  5. 9:38Text analysis process
  6. 14:10Bloated term storage
  7. 17:02Optimizing index structure
  8. 20:16Keyword vs doc values trade-offs
  9. 22:24Hidden index data
  10. 24:30Match-only text indexing
  11. 25:56Index mechanics recap
  12. 26:21Q&A
~/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.