Introduction to Elasticsearch

Introduction to Elasticsearch

Introduction to Elasticsearch

SHARE

BY

Vishal Wayachal

6 January 2018

Stay updated with our Newsletter

What is Elasticsearch?

Elasticsearch is a full-text, distributed NoSQL database. In other words, it uses documents rather than schema or tables. It’s a free, open source tool that allows for real-time searching and analyzing your data. People appreciate this system because it allows you to run metrics on your data immediately, so you can understand it right away, on an ongoing basis.

Features

Here are some features of Elasticsearch:

Text search

Elasticsearch Text Search

Elasticsearch is primarily used when there is a lot of text. Traditional RDBMS don’t perform well for text search. Elasticsearch is highly customizable, extendable through plugins. You can build robust search without much knowledge quite fast.

Logging and Analysis

Elasticsearch Logging and Analysis

Enterprise Search

Elasticsearch Enterprise Search

Combining above uses, Elasticsearch enables enterprise search which includes Document Search, E-commerce product search, blog search, people search, site search in all its forms.

Schema-free

You can get up and running almost immediately with Elasticsearch. You just index a JSON document. The program knows to identify the structure and format of the data and generate an index so that it can be searched.

Elasticsearch Schema-free

RESTful API

Elastisearch RESTful API

Elasticsearch is API driven. Almost any action can be performed using a simple RESTful API using JSON over HTTP. An API already exists in the language of your choice. Responses are always in JSON, which is
both machine and human readable.

Fuzzy Searching

Excellent Query DSL

The REST API exposes a very complex and capable query DSL, that is very easy to use. Every query is just a JSON object that can practically contain any type of query, or even several of them combined.

Faceting, another very common search feature, is just something that upon-request is accompanied to search results, and then is ready for you to use.

Multi-tenancy

Elasticsearch Multi-tenancy

You can host multiple indexes on one Elasticsearch installation – node or cluster. Each index can have multiple “types”, which are essentially completely different indexes.

Also, you can query multiple types and multiple indexes with one simple query. This opens quite a lot of options.

Document-Oriented

Store complex real-world entities in Elasticsearch as structured JSON documents. All fields are indexed by default, and all the indices can be used in a single query, to return results at breathtaking speed.

Elasticsearch Document Oriented
Elasticsearch entities

Elasticsearch Limitations

  • Data Analysis
  • Data Search
  • Data Storage
  • Elasticsearch
  • Open Source