What is Elasticsearch
Search and analytics engine
Elasticsearch is a distributed, open-source search and analytics engine built on Apache Lucene. It provides full-text search, structured search, and real-time analytics capabilities.
What is Elasticsearch
Elasticsearch is a NoSQL database optimized for searching and analyzing large volumes of data. It indexes data in JSON format and provides a powerful REST API for queries.
Key Features
- Full-text search — natural language search with relevance scoring
- Distributed architecture — horizontal scaling across clusters
- Real-time — near-instant indexing and search
- RESTful API — simple HTTP-based interaction
Core Concepts
- Index — collection of documents (similar to a database)
- Document — unit of data in JSON format
- Shard — horizontal partition of an index
- Replica — copy of a shard for fault tolerance
Use Cases
- Website and application search
- Log analysis (ELK Stack)
- Metrics monitoring
- Business analytics
- Recommendation systems
Benefits
- Search speed across billions of documents
- Flexible data schema
- Rich query language (Query DSL)
- Aggregations for analytics
- Active community