Skip to content

Instantly share code, notes, and snippets.

@einnar82
Created May 9, 2020 02:39
Show Gist options
  • Save einnar82/2e018dbb07c8b4a5391b51803b2574fa to your computer and use it in GitHub Desktop.
Save einnar82/2e018dbb07c8b4a5391b51803b2574fa to your computer and use it in GitHub Desktop.
Elasticsearch Basics
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

  1. 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
  2. Multi Document API

    • Multi GET API
    • Bulk API
    • Delete by query API
    • Update by query API
    • Reindex API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment