SlideShare a Scribd company logo
Elasticsearch 
from the Bottom Up 
Njal Karevoll 
njal@found.no 
@nkvoll
Elasticsearch 
from the Bottom Up 
Njal Karevoll 
njal@found.no 
@nkvoll
Who? 
Co-founder of Found AS - Hosted Elasticsearch: found.no 
8+ years search, 3+ Elasticsearch 
Herding hundreds of Elasticsearch clusters
Motivation 
• Why isn't my search for *foo-bar* matching “foo-bar"? 
• Why can adding more documents shrink the index? 
• Why is Elasticsearch using so much memory?
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Segments are immutable
Deletes?
Compress all the things!
Cache all the things!
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Elasticsearch From the Bottom Up
Search by index terms 
Text analysis gives us terms
Search by segment 
Uses several data structures
Immutable segments
Shard == Lucene Index
Elasticsearch Index 
abstracts Lucene Indexes
… across nodes in a cluster
Learn More! 
found.no/foundation 
Follow 
@foundsays

More Related Content

Elasticsearch From the Bottom Up