What is Elasticsearch?
Turkish: Elasticsearch
Elasticsearch is a distributed search engine for fast full-text search, filtering, and analytics over large text and log datasets.
What is Elasticsearch?
Elasticsearch is a distributed search and analytics engine built on Apache Lucene. It indexes large volumes of text, logs, events, and product data so full-text search, filtering, ranking, and aggregation queries can run quickly.
How Does It Work?
Data is stored as documents. Each document contains JSON-like fields. Text fields pass through analyzers, are tokenized, and are added to an inverted index. That structure allows a search such as “red shoes” to find relevant documents without scanning every record one by one.
In a cluster, indexes are split into shards. Replica shards provide redundancy and read capacity. The distributed model is powerful, but mapping, memory, disk, shard count, and query cost must be managed carefully to avoid performance problems.
Where Is It Used?
- E-commerce product search and filters
- Log search and application observability
- Document, support ticket, or knowledge base search
- Security event and metrics analytics
Business Use
Elasticsearch is not always a replacement for a relational database. In many projects it is a dedicated search layer fed from the main data source. It has NoSQL characteristics, but its main value is search and analytics.
With Kibana, teams can explore logs, test queries, and build dashboards. In product search, synonyms, typo tolerance, ranking rules, and fresh inventory data should be designed together.