Elasticsearch | RDBMS |
---|---|
Document | Row |
Type | Column |
Index | Index |
Cluster - collection of one or more nodes. Node - it has shards and replicas, it is the single instance of Elasticsearch Shard - distributor of data, it allows you to split data across different shards Replica - Copy of a shard Mapping - on how data should be stored in a document, including the data types, fields etc.
Tip: Do not load many shards to a single node, better to distribute it to other nodes.
Elasticsearch Rest API
Document API It has 2 types
-
Single Document API
- Index API ( Adds or update a document to make it searchable.) Example: POST /{index-name}/{type:doc}/{id}
- GET API
- UPDATE API
- DELETE API
-
Multi Document API
- Multi GET API
- Bulk API
- Delete by query API
- Update by query API
- Reindex API