Safekipedia

Elasticsearch

Discoverer · ages 10+Adapted from Wikipedia
The logo of Elasticsearch – distributed, scalable, and highly available real-time search platform with a RESTful API

Elasticsearch is a free and open-source search engine developed by Elastic. It is based on Apache Lucene. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents.

Developers can work with Elasticsearch using official clients in Java, C#, PHP, Python, Ruby, and other languages. According to the DB-Engines ranking, Elasticsearch is the most popular enterprise search engine.

Elasticsearch stores its JSON documents in indices that are divided into shards. Each shard may have replicas that are spread across the nodes of a cluster.

The software supports full-text search, faceted search, real-time search, and multitenancy.

Elasticsearch is developed alongside Logstash, Kibana, and Beats as part of the Elastic Stack, which was formerly called the ELK Stack.

History

Shay Banon created the first version of the search tool, called Compass, in 2004. While building a third version, he decided a full rewrite was needed to make a search system that could grow and run across many computers. It used JSON over HTTP as a common way to connect. He released the first version of Elasticsearch in February 2010. Elastic NV was founded in 2012 to sell services and products built around Elasticsearch. In June 2014, the company raised $70 million in a funding round led by New Enterprise Associates, with more money from Benchmark Capital and Index Ventures, for a total of $104 million. In March 2015, the company changed its name from Elasticsearch to Elastic. In November 2017, it bought the search startup Swiftype, whose technology was used for Elastic App Search and Elastic Site Search. Elastic also partnered with Google Cloud Platform and Alibaba Cloud to offer its software there, including Kibana. On 5 October 2018, Elastic was listed on the New York Stock Exchange, after filing for an initial public offering in June 2018.

In January 2021, Elastic announced that starting with version 7.11, Elasticsearch and Kibana would move from the Apache License 2.0 to a dual license under the Server Side Public License and the Elastic License. Neither of these is recognised as an open-source license. Elastic said this was a response to Amazon Web Services (AWS) offering Elasticsearch and Kibana as a service without enough collaboration. AWS announced a fork of the projects to keep developing them under the Apache License 2.0, and companies such as CrateDB also supported the fork. Because of possible trademark conflicts with the name "Elasticsearch," AWS renamed its fork OpenSearch in April 2021. In August 2024, Elastic added the GNU Affero General Public License as a third licensing option starting with version 8.16.0, making the software open source again alongside the two other options.

Architecture and features

Elasticsearch is built on Apache Lucene and lets people use Lucene's abilities through a JSON and Java API. Documents are stored in indices, which are split into main parts called primary shards. Each shard can have zero or more copies, called replicas, spread across the computers in the system. Routing and rebalancing are handled automatically, and once an index is made, its number of primary shards cannot be changed. The engine supports faceted search and percolation, a form of prospective search in which saved searches are matched against new documents instead of the other way around. A gateway module keeps indices saved over the long term, so an index can be recovered after a computer fails. Real-time GET requests let Elasticsearch be used as a NoSQL datastore, but it does not support distributed transactions.

In May 2019, Elastic made the core security features of the Elastic Stack available without charge, including TLS for encrypted communications. The source code for these features is available under the Elastic License. Elasticsearch also offers SIEM and machine learning as part of its paid products. Official client libraries are maintained for Java, C# (.NET), PHP, Python, and Ruby, among others.

Elastic Stack

Elasticsearch is developed together with Logstash (a tool that collects data and reads logs), Kibana (a platform for analysing and showing data in pictures and charts), and Beats (small tools that send data). These four products are designed to be used together as the Elastic Stack. This group of tools was once known as the ELK Stack, a short name made from the first letters of "Elasticsearch, Logstash, and Kibana".

Quiz time!

5 questions about Elasticsearch

Question 1 of 5

What is Elasticsearch built on?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Elasticsearch, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.