Elasticsearch notes

Elasticsearch vs RDBMS concepts:

You can (roughly) think of an Elastic index like a RDBMS database.

 

  • MySQL => Databases => Tables => Rows=>Columns
  • Elasticsearch => Indices(database) => Types(tables) => Documents(rows) with Properties(columns)

An Elasticsearch cluster can contain multiple Indices (databases), which in turn contain multiple Types(tables). These types hold multiple Documents (rows), and each document has Properties(columns).

A ES mapping is like an RDBMS schema.

The three required Document metadata elements are as follows:

_index
Where the document lives is split into one or more Shards (partitions)
_type
The class of object that the document represents
_id
The unique identifier for the document

A Shard can have one or more replicas(copies).

Cluster is a collection of Shards and Replicas.

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.