2025-06-26•Abyan Dimas
Elasticsearch: More Than Just Search
How does Google search work? How does Amazon find products so fast? They use Inverted Indexes.
The Inverted Index
Instead of mapping Document -> Words, it maps Word -> Documents.
- "Apple" -> [Doc 1, Doc 3]
- "Banana" -> [Doc 2]
This makes full-text search O(1).
Elasticsearch Features
- Fuzzy Search: Finds "iPhone" even if you type "ipone".
- Aggregations: "Count products by category" (faster than SQL GROUP BY).
- Scalability: Distributed by nature. Splits indexes into shards across nodes.
The ELK Stack
Elasticsearch + Logstash + Kibana. The industry standard for searching and visualizing server logs.