Professional Documents
Culture Documents
What is Elasticsearch?
Elasticsearch is a search server based on Lucene.
It provides a distributed, multitenant-capable
full-text search engine with a RESTful web
interface
and
schema-free
JSON
documents. Elasticsearch is developed in Java
and is released as open source under the terms
of the Apache License.
What is multi-tenancy?
A cluster can host multiple indices which can be queried
independently or as a group. Index aliases allow you to add
indexes on the fly, while being transparent to your application.
Elasticsearch Index
ElasticSearch is able to achieve fast search responses because,
instead of searching the text directly, it searches an index
instead. This is like retrieving pages in a book related to a
keyword by scanning the index at the back of a book, as opposed
to searching every word of every page of the book.
This type of index is called an inverted index, because it inverts a
page-centric data structure (page->words) to a keyword-centric
data structure (word->pages).
ElasticSearch uses Apache Lucene to create and manage this
inverted index.
Mapping in Elasticsearch
Mapping is the process of defining how a document should be mapped to
the Search Engine, including its searchable characteristics such as which
fields are searchable and if/how they are tokenized. In Elasticsearch, an
index may store documents of different "mapping types". Elasticsearch
allows one to associate multiple mapping definitions for each mapping
type.
Explicit mapping is defined on an index/type level. By default, there isnt a
need to define an explicit mapping, since one is automatically created and
registered when a new type or new field is introduced (with no
performance overhead) and have sensible defaults. Only when the
defaults need to be overridden must a mapping definition be provided.
More Details
Syllabus
Our Partners