SlideShare a Scribd company logo
Elastic 101 - Get started
ENG. ISMAIL ANJRINI
ELASTIC CERTIFIED ENGINEER
CURRENT VERSION 7.6Elastic-Saudi-Arabia
ELASTIC STACK (ELK)
CURRENT VERSION 7.6
About Me
Ismail Anjrini
More than 15 years experience
Elasticsearch Certified Engineer
CURRENT VERSION 7.6
Elasticsearch
CURRENT VERSION 7.6
Kibana
CURRENT VERSION 7.6
Beats
CURRENT VERSION 7.6
Logstash
CURRENT VERSION 7.6
Lucene
Apache Lucene is an open source project available for free
Lucene is a Java library
Elasticsearch is built over Lucene and provides a JSON based REST API to refer to Lucene features
Elasticsearch provides a distributed system on top of Lucene
CURRENT VERSION 7.6
CURRENT VERSION 7.6
Elasticsearch Installation
Download and unzip Elasticsearch
Unix
◦ bin/elasticsearch
Windows
◦ binelasticsearch.bat
http://localhost:9200
Done
CURRENT VERSION 7.6
Elasticsearch Installation
Install elasticsearch as windows service
◦ elasticsearch-service.bat install
◦ Run the windows service
◦ Wait
◦ http://localhost:9200/
◦ Done
CURRENT VERSION 7.6
Kibana Installation
Download and unzip Elasticsearch
Unix
◦ bin/kibana
Windows
◦ binkibana.bat
http://localhost:5601
Done
CURRENT VERSION 7.6
Kibana Installation
Install Kibana as task
◦ Create new Task
◦ Run the new task
◦ Wait for a minute
◦ http://localhost:5601/
◦ Done
CURRENT VERSION 7.6
CURRENT VERSION 7.6
CONCEPTS
Index
An index is a collection of documents that have somewhat similar characteristics
◦ Customer data
◦ Orders
◦ Log
◦ …
An index is identified by a name (that must be all lowercase)
◦ Index name is used to refer to the index when performing indexing, search, update, and delete
operations against the documents in it
CURRENT VERSION 7.6
Document
A document is a basic unit of information that can be indexed
◦ Single customer
◦ Single log line
The document is expressed in JSON
CURRENT VERSION 7.6
Shards & Replicas
Each shard is in itself a fully-functional and independent "index" that can be hosted on any node
in the cluster
When you create an index, you can simply define the number of shards that you want
Sharding is important for two primary reasons:
◦ It allows you to horizontally split/scale your content volume
◦ It allows you to distribute and parallelize operations across shards (potentially on multiple nodes) thus
increasing performance/throughput
CURRENT VERSION 7.6
Shards
CURRENT VERSION 7.6
Shards
CURRENT VERSION 7.6
Shards routing
CURRENT VERSION 7.6
Shards & Replicas
Replication is important for two primary reasons:
◦ It provides high availability in case a shard/node fails.
◦ It allows to scale out your search volume/throughput since searches can be executed on all replicas in
parallel
CURRENT VERSION 7.6
Replicas
CURRENT VERSION 7.6
CURRENT VERSION 7.6
INDEX
Index
An index is like a ‘table’ in a relational database.
It has a mapping which defines multiple types.
An index is a logical namespace:
◦ Maps to one or more primary shards
◦ Can have zero or more replica shards
RDBMS
ES
Database
?
Table
Index
Columns/Rows
Document
CURRENT VERSION 7.6
Index settings
number_of_shards
number_of_replicas
refresh_interval
CURRENT VERSION 7.6
Index Operations – create index
We can update number of shards/number of replicas for existed indexes
CURRENT VERSION 7.6
Index Operations – mapping
CURRENT VERSION 7.6
Index Operations – mapping
PUT names
{
"mappings":
{
"properties":
{
"name":
{
"type": "keyword“
},
"name_text": { "type": "text" }
}
}
}
CURRENT VERSION 7.6
Index Operations – mapping
CURRENT VERSION 7.6
Index Operations – list all indexes
GET _cat/indices
GET /_cat/indices/twi*?v
GET /_cat/indices/?v&health=green|yellow|red&h=col1,col2
CURRENT VERSION 7.6
Index Operations – read index details
GET big-index
GET big-index?format=yaml|json
CURRENT VERSION 7.6
Index Operations – create document
POST big-index/_doc/1
{
"name": "Ismail Anjrini",
"age": 27
}
POST big-index/_doc/2
{
"name": "Fadi Abdul Wahab",
"age": 45,
"country": "Saudi Arabia"
}
CURRENT VERSION 7.6
Index Operations – POST vs PUT
POST big-index/_doc/
{
"name": "Kasem",
"age": 46
}
PUT big-index/_doc/
{
"name": "Riyadh",
"age": 33
}
CURRENT VERSION 7.6
Index Operations – read document
GET big-index/_doc/2
CURRENT VERSION 7.6
Index Operations – update document
POST big-index/_update/1
{
"doc":
{
"name":"Ismail Hassan Anjrini" ,
"country": "Syria"
}
}
CURRENT VERSION 7.6
Index Operations – delete document
DELETE big-index/_doc/1 PUT big-index/_doc/1
{
"name":"Ismail Anjrini",
"age": 27
}
CURRENT VERSION 7.6
Index Operations - Index aliases
An index alias is a secondary name used to refer to one or more existing indices
POST index-1/_alias/index-alias
POST index-2/_alias/index-alias
POST index-3/_alias/index-alias
CURRENT VERSION 7.6
Index Operations - Index aliases
filter: If specified, the index alias only applies to documents returned by the filter.
POST index-*/_alias/index-Egypt
{
"filter":
{
"term":
{
"nationality": "egypt"
}
}
}
CURRENT VERSION 7.6
Index Operations - Index aliases
DELETE index-1/_alias/index-alias
DELETE index-*/_alias/index-alias
GET index-alias/_search
GET index-alias/_search
CURRENT VERSION 7.6
Index Template
Index templates define settings and mappings that you can automatically apply when creating
new indices
Elasticsearch applies templates to new indices based on an index pattern that matches the index
name
Changes to index templates do not affect existing indices
Settings and mappings specified in create index API requests override any settings or mappings
specified in an index template
CURRENT VERSION 7.6
Index Template
CURRENT VERSION 7.6
PUT elastic-log-sys1
Index Template - Order
Multiple index templates can potentially match an index
Both the settings and mappings are merged into the final configuration of the index
The order of the merging can be controlled using the order parameter
With lower order being applied first, and higher orders overriding them
CURRENT VERSION 7.6
Index Template - Order
CURRENT VERSION 7.6
PUT elastic-log-sys1
Index Operations - Reindex
Reindex the current data in old-index to new-index
It does not copy the settings/fields settings from the source index to destination
CURRENT VERSION 7.6
Index Operations - Reindex
version_type: internal or empty:
◦ Update any document that have the same _id regardless the version number in the target index
◦ Increase the version number for the documents with the same _id
CURRENT VERSION 7.6
Index Operations - Reindex
CURRENT VERSION 7.6
Index Operations - Reindex
version_type: external
◦ Elasticsearch to preserve the version from the source
◦ Create any documents that are missing
◦ The _id value is not matched
◦ Update any documents that have an older version in the destination index than they do in the source
index
◦ The document with older version will get the same version number from the source index
CURRENT VERSION 7.6
Index Operations - Reindex
Created index-1
Add data to index-1
Delete new-index-1
CURRENT VERSION 7.6
Index Operations - Reindex
Add document to index-1
Do reindex
CURRENT VERSION 7.6
Index Operations - Reindex
op_type: create
◦ _reindex to only create missing documents in the target index
◦ All existing documents will cause a version conflict
max_docs
◦ To limit the number of processed documents from source to dest
CURRENT VERSION 7.6
CURRENT VERSION 7.6

More Related Content

ODP
Query DSL In Elasticsearch
PPTX
Elastic Stack Introduction
PPTX
MySQL_MariaDB로의_전환_기술요소-202212.pptx
PPTX
ElasticSearch Basic Introduction
PDF
Introduction to elasticsearch
PDF
Performant Streaming in Production: Preventing Common Pitfalls when Productio...
PPTX
Elastic - ELK, Logstash & Kibana
PPTX
Elasticsearch
Query DSL In Elasticsearch
Elastic Stack Introduction
MySQL_MariaDB로의_전환_기술요소-202212.pptx
ElasticSearch Basic Introduction
Introduction to elasticsearch
Performant Streaming in Production: Preventing Common Pitfalls when Productio...
Elastic - ELK, Logstash & Kibana
Elasticsearch

What's hot (20)

PDF
Introduction to elasticsearch
PDF
ELK Stack
PDF
Introduction to Apache Calcite
PDF
Designing ETL Pipelines with Structured Streaming and Delta Lake—How to Archi...
PPTX
ELK Elasticsearch Logstash and Kibana Stack for Log Management
PDF
Oracle Latch and Mutex Contention Troubleshooting
PDF
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
PDF
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
PPTX
Delta Lake with Azure Databricks
PPTX
Fleet and elastic agent
PDF
Elk - An introduction
PDF
Nosql data models
PDF
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
PDF
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
PDF
Elasticsearch
PPTX
Introducing Azure SQL Data Warehouse
PPTX
Processing Large Data with Apache Spark -- HasGeek
PDF
NiFi 시작하기
PPTX
Internal Hive
PPTX
Maria db 이중화구성_고민하기
Introduction to elasticsearch
ELK Stack
Introduction to Apache Calcite
Designing ETL Pipelines with Structured Streaming and Delta Lake—How to Archi...
ELK Elasticsearch Logstash and Kibana Stack for Log Management
Oracle Latch and Mutex Contention Troubleshooting
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
Delta Lake with Azure Databricks
Fleet and elastic agent
Elk - An introduction
Nosql data models
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
Elasticsearch
Introducing Azure SQL Data Warehouse
Processing Large Data with Apache Spark -- HasGeek
NiFi 시작하기
Internal Hive
Maria db 이중화구성_고민하기
Ad

Similar to Elastic 101 - Get started (20)

PPTX
Elastic 101 index operations
PPTX
Elasticsearch an overview
PPTX
ElasticSearch AJUG 2013
PPTX
Elastic search Walkthrough
PPTX
ElasticSearch - DevNexus Atlanta - 2014
ODP
Elasticsearch for beginners
PDF
Elasticsearch, a distributed search engine with real-time analytics
PPTX
Elastic Search
PPT
Elk presentation1#3
PDF
Elasticsearch speed is key
PPTX
Elasticsearch - DevNexus 2015
PDF
Elasto Mania
PDF
Confessions of a newbie elasticsearch application developer
PPTX
Elasticsearch Introduction
PDF
Elasticsearch Architechture
PDF
Elasticsearch Introduction at BigData meetup
PDF
Introduction to Elasticsearch
PPTX
Elasticsearch
PPTX
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
PDF
Elasticsearch at EyeEm
Elastic 101 index operations
Elasticsearch an overview
ElasticSearch AJUG 2013
Elastic search Walkthrough
ElasticSearch - DevNexus Atlanta - 2014
Elasticsearch for beginners
Elasticsearch, a distributed search engine with real-time analytics
Elastic Search
Elk presentation1#3
Elasticsearch speed is key
Elasticsearch - DevNexus 2015
Elasto Mania
Confessions of a newbie elasticsearch application developer
Elasticsearch Introduction
Elasticsearch Architechture
Elasticsearch Introduction at BigData meetup
Introduction to Elasticsearch
Elasticsearch
ElasticSearch 5.x - New Tricks - 2017-02-08 - Elasticsearch Meetup
Elasticsearch at EyeEm
Ad

More from Ismaeel Enjreny (20)

PPTX
Introduction to Elasticsearch
PPTX
Elastic 101 ingest manager
PPTX
Elastic 101 - API Logs
PPTX
WSO2 Identity Server - Getting Started
PPTX
Elasticsearch k8s
PPTX
ELK Observability 1
PPTX
ELK observability 2
PPTX
Wso2 is integration with .net core
PPTX
Deploy Elasticsearch Cluster on Kubernetes
PPTX
Redis 101 Data Structure
PPTX
Redis 101 - INTRO
PPTX
Elastic 101 ingest manager
PPTX
Getting started with Elasticsearch in .net
PPTX
Elastic 101 log enrichment
PDF
دليل البرمجة باستخدام Dynamo DB للمبتدئين
PPTX
Amazon services iam
PPTX
Amazon services ec2
PPTX
Redis - Partitioning
PPTX
Redis Clients Handling
PPTX
Redis Security
Introduction to Elasticsearch
Elastic 101 ingest manager
Elastic 101 - API Logs
WSO2 Identity Server - Getting Started
Elasticsearch k8s
ELK Observability 1
ELK observability 2
Wso2 is integration with .net core
Deploy Elasticsearch Cluster on Kubernetes
Redis 101 Data Structure
Redis 101 - INTRO
Elastic 101 ingest manager
Getting started with Elasticsearch in .net
Elastic 101 log enrichment
دليل البرمجة باستخدام Dynamo DB للمبتدئين
Amazon services iam
Amazon services ec2
Redis - Partitioning
Redis Clients Handling
Redis Security

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
top salesforce developer skills in 2025.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
Which alternative to Crystal Reports is best for small or large businesses.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Reimagine Home Health with the Power of Agentic AI​
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Odoo POS Development Services by CandidRoot Solutions
How to Migrate SBCGlobal Email to Yahoo Easily
How Creative Agencies Leverage Project Management Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
top salesforce developer skills in 2025.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
PTS Company Brochure 2025 (1).pdf.......
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

Elastic 101 - Get started

  • 1. Elastic 101 - Get started ENG. ISMAIL ANJRINI ELASTIC CERTIFIED ENGINEER CURRENT VERSION 7.6Elastic-Saudi-Arabia
  • 3. About Me Ismail Anjrini More than 15 years experience Elasticsearch Certified Engineer CURRENT VERSION 7.6
  • 8. Lucene Apache Lucene is an open source project available for free Lucene is a Java library Elasticsearch is built over Lucene and provides a JSON based REST API to refer to Lucene features Elasticsearch provides a distributed system on top of Lucene CURRENT VERSION 7.6
  • 10. Elasticsearch Installation Download and unzip Elasticsearch Unix ◦ bin/elasticsearch Windows ◦ binelasticsearch.bat http://localhost:9200 Done CURRENT VERSION 7.6
  • 11. Elasticsearch Installation Install elasticsearch as windows service ◦ elasticsearch-service.bat install ◦ Run the windows service ◦ Wait ◦ http://localhost:9200/ ◦ Done CURRENT VERSION 7.6
  • 12. Kibana Installation Download and unzip Elasticsearch Unix ◦ bin/kibana Windows ◦ binkibana.bat http://localhost:5601 Done CURRENT VERSION 7.6
  • 13. Kibana Installation Install Kibana as task ◦ Create new Task ◦ Run the new task ◦ Wait for a minute ◦ http://localhost:5601/ ◦ Done CURRENT VERSION 7.6
  • 15. Index An index is a collection of documents that have somewhat similar characteristics ◦ Customer data ◦ Orders ◦ Log ◦ … An index is identified by a name (that must be all lowercase) ◦ Index name is used to refer to the index when performing indexing, search, update, and delete operations against the documents in it CURRENT VERSION 7.6
  • 16. Document A document is a basic unit of information that can be indexed ◦ Single customer ◦ Single log line The document is expressed in JSON CURRENT VERSION 7.6
  • 17. Shards & Replicas Each shard is in itself a fully-functional and independent "index" that can be hosted on any node in the cluster When you create an index, you can simply define the number of shards that you want Sharding is important for two primary reasons: ◦ It allows you to horizontally split/scale your content volume ◦ It allows you to distribute and parallelize operations across shards (potentially on multiple nodes) thus increasing performance/throughput CURRENT VERSION 7.6
  • 21. Shards & Replicas Replication is important for two primary reasons: ◦ It provides high availability in case a shard/node fails. ◦ It allows to scale out your search volume/throughput since searches can be executed on all replicas in parallel CURRENT VERSION 7.6
  • 24. Index An index is like a ‘table’ in a relational database. It has a mapping which defines multiple types. An index is a logical namespace: ◦ Maps to one or more primary shards ◦ Can have zero or more replica shards RDBMS ES Database ? Table Index Columns/Rows Document CURRENT VERSION 7.6
  • 26. Index Operations – create index We can update number of shards/number of replicas for existed indexes CURRENT VERSION 7.6
  • 27. Index Operations – mapping CURRENT VERSION 7.6
  • 28. Index Operations – mapping PUT names { "mappings": { "properties": { "name": { "type": "keyword“ }, "name_text": { "type": "text" } } } } CURRENT VERSION 7.6
  • 29. Index Operations – mapping CURRENT VERSION 7.6
  • 30. Index Operations – list all indexes GET _cat/indices GET /_cat/indices/twi*?v GET /_cat/indices/?v&health=green|yellow|red&h=col1,col2 CURRENT VERSION 7.6
  • 31. Index Operations – read index details GET big-index GET big-index?format=yaml|json CURRENT VERSION 7.6
  • 32. Index Operations – create document POST big-index/_doc/1 { "name": "Ismail Anjrini", "age": 27 } POST big-index/_doc/2 { "name": "Fadi Abdul Wahab", "age": 45, "country": "Saudi Arabia" } CURRENT VERSION 7.6
  • 33. Index Operations – POST vs PUT POST big-index/_doc/ { "name": "Kasem", "age": 46 } PUT big-index/_doc/ { "name": "Riyadh", "age": 33 } CURRENT VERSION 7.6
  • 34. Index Operations – read document GET big-index/_doc/2 CURRENT VERSION 7.6
  • 35. Index Operations – update document POST big-index/_update/1 { "doc": { "name":"Ismail Hassan Anjrini" , "country": "Syria" } } CURRENT VERSION 7.6
  • 36. Index Operations – delete document DELETE big-index/_doc/1 PUT big-index/_doc/1 { "name":"Ismail Anjrini", "age": 27 } CURRENT VERSION 7.6
  • 37. Index Operations - Index aliases An index alias is a secondary name used to refer to one or more existing indices POST index-1/_alias/index-alias POST index-2/_alias/index-alias POST index-3/_alias/index-alias CURRENT VERSION 7.6
  • 38. Index Operations - Index aliases filter: If specified, the index alias only applies to documents returned by the filter. POST index-*/_alias/index-Egypt { "filter": { "term": { "nationality": "egypt" } } } CURRENT VERSION 7.6
  • 39. Index Operations - Index aliases DELETE index-1/_alias/index-alias DELETE index-*/_alias/index-alias GET index-alias/_search GET index-alias/_search CURRENT VERSION 7.6
  • 40. Index Template Index templates define settings and mappings that you can automatically apply when creating new indices Elasticsearch applies templates to new indices based on an index pattern that matches the index name Changes to index templates do not affect existing indices Settings and mappings specified in create index API requests override any settings or mappings specified in an index template CURRENT VERSION 7.6
  • 41. Index Template CURRENT VERSION 7.6 PUT elastic-log-sys1
  • 42. Index Template - Order Multiple index templates can potentially match an index Both the settings and mappings are merged into the final configuration of the index The order of the merging can be controlled using the order parameter With lower order being applied first, and higher orders overriding them CURRENT VERSION 7.6
  • 43. Index Template - Order CURRENT VERSION 7.6 PUT elastic-log-sys1
  • 44. Index Operations - Reindex Reindex the current data in old-index to new-index It does not copy the settings/fields settings from the source index to destination CURRENT VERSION 7.6
  • 45. Index Operations - Reindex version_type: internal or empty: ◦ Update any document that have the same _id regardless the version number in the target index ◦ Increase the version number for the documents with the same _id CURRENT VERSION 7.6
  • 46. Index Operations - Reindex CURRENT VERSION 7.6
  • 47. Index Operations - Reindex version_type: external ◦ Elasticsearch to preserve the version from the source ◦ Create any documents that are missing ◦ The _id value is not matched ◦ Update any documents that have an older version in the destination index than they do in the source index ◦ The document with older version will get the same version number from the source index CURRENT VERSION 7.6
  • 48. Index Operations - Reindex Created index-1 Add data to index-1 Delete new-index-1 CURRENT VERSION 7.6
  • 49. Index Operations - Reindex Add document to index-1 Do reindex CURRENT VERSION 7.6
  • 50. Index Operations - Reindex op_type: create ◦ _reindex to only create missing documents in the target index ◦ All existing documents will cause a version conflict max_docs ◦ To limit the number of processed documents from source to dest CURRENT VERSION 7.6

Editor's Notes

  • #5: 1 - The heart of the Elastic Stack 2 - Run it on your laptop. Or hundreds of servers with petabytes of data. 3 - Search across everything. Find that specific thing
  • #6: Kibana should be configured to run against an Elasticsearch node of the same version. This is the officially supported configuration. https://www.elastic.co/guide/en/kibana/current/setup.html You can’t use Kibana without Elasticsearch
  • #7: 1 - Beats is the platform for single-purpose data shippers. They send data from hundreds or thousands of machines and systems to Logstash or Elasticsearch. 2 - Beats are great for gathering data. They sit on your servers, with your containers, or deploy as functions — and then centralize data in Elasticsearch. And if you want more processing muscle, Beats can also ship to Logstash for transformation and parsing. 3 - The cornerstone of every open source Beat is libbeat, the common library for forwarding data. Have a specialized protocol you need to monitor? Build it
  • #8: 1 - Logstash is an open source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to your favorite "stash.“ 2 - Ingest Data of All Shapes, Sizes, and Sources 3 - Parse & Transform Your Data On the Fly 4 - Choose Your Stash, Transport Your Data
  • #18: Every node is implicitly a coordinating node. This means that a node that has all three node.master, node.data and node.ingest set to false will only act as a coordinating node, which cannot be disabled. As a result, such a node needs to have enough memory and CPU in order to deal with the gather phase.
  • #22: Iit is important to note that a replica shard is never allocated on the same node as the original/primary shard that it was copied from.
  • #23: Iit is important to note that a replica shard is never allocated on the same node as the original/primary shard that it was copied from.
  • #25: Table  Type (deprecated)
  • #26: refresh_interval: How often to perform a refresh operation, which makes recent changes to the index visible to search. Defaults to 1s
  • #31: Health values: green|yellow|red (Optional, string) Health status used to limit returned indices h: (Optional, string) Comma-separated list of column names to display. s: (Optional, string) Comma-separated list of column names or column aliases used to sort the response.
  • #33: Script 1: Where is the Nationality field? It is not here because we didn’t pass it during the document creation Script 2: Note the country column in the mappings section
  • #34: PUT 1 - updates a full document, not only the field you're sending. 2 - can not create document without id POST 1 - will do a partial update and only update the fields you're sending, and not touch the other ones already present in the document. 2 - creates document with/without id
  • #36: 1 - Note that we didn’t touch the field age and still appears 2 – You can add new field to the document
  • #37: Check _version: 6 Versioning: Each document indexed is versioned. When deleting a document, the version can be specified to make sure the relevant document we are trying to delete is actually being deleted and it has not changed in the meantime. Every write operation executed on a document, deletes included, causes its version to be incremented. The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. The length of time for which a deleted document’s version remains available is determined by the index.gc_deletes index setting and defaults to 60 seconds.
  • #41: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  • #42: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  • #43: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  • #44: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  • #45: Great articles https://developers.soundcloud.com/blog/how-to-reindex-1-billion-documents-in-1-hour-at-soundcloud https://engineering.carsguide.com.au/elasticsearch-zero-downtime-reindexing-e3a53000f0ac Full reference https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
  • #47: 1 – Reindex documents already exists in the dest index 2 – The version will be increased with the updated data