Basics of ElasticSearch And Its Components

Elastic search is an analytics and search engine which is open source and distributed. It is developed in Java language and built on Apache Lucene. It allows you to store, search, and analyze large amounts of data faster and even in milliseconds. It is able to receive such a fast response because rather than searching the data directly it searches for its index. It uses a structure based on documents rather than database schemas. You can just imagine Elastic Search of a server receiving a json request aand responding back with a json response.

How Does Elasticsearch Work?
Let's now understand how elastic search organizes data.

Documents
Document is the unit of information which can be expressed as JSON data. You can just imagine it like a row in a database associated with an entity. A document here is more than a text; it can be encoded Json data. This data can be string,numbers, text, date. Each one of the documents is associated with a unique id and a data type which is used to define what kind of entity it is.