SlideShare a Scribd company logo
3
Most read
10
Most read
15
Most read
Elastic Search
Pavan Navule
Contents
▪ Introduction
▪ Terminology
– Index,Type, Document, Field
– Comparison with Relational Database
▪ Architecture
– Clusters, Nodes, Shards & Replicas
▪ Search
– How it works?
– Inverted Index
▪ Installation & Configuration
– Setup & Run Elastic Server
▪ Elastic in Action
– Indexing, Querying & Deleting
Introduction
Distributed
Terminology
▪ Index
– Is means of storing different types of data.
– Can span across one primary shard or multiple shards.
– Identified by metadata field _index
– An Index can contain multiple types
Terminology
▪ Type
– A type is a convenient way to store a specific type of data within an
index
– Identified by metadata field _type
Terminology
▪ Document
– A document is JSON object (set of
‘key-value’ pairs aka fields)
▪ _type
▪ _id
▪ _source
Terminology
▪ Field
– Key
▪ type (data type)
▪ Format
– Value
▪ Can hold scalar data (int, string values)
or Nested structures like array or
object
Terminology (Comparison with RDBMS)
Id Status
1 Reserved
2 In House
3 Departed
1 Reserved
Architecture
https://prezi.com/hmxfrorhtcq-/elasticsearch/
Search
How Elastic Search Works?
N
N
N
N
Cluster
• Master Node
• Multicast to find other nodes
• Manage Cluster State
• Assign Shards to Nodes
N
N
N
N
Search
How Elastic Search Works?
N
N
N
Cluster Replica
Search
Internode Communication
• Sends parallel Queries to all nodes
• Merges the full response
• Response returned to the user
N
N
N
Cluster
P2P Architecture
Default Port 9300
Search
Inverted Index
Text Processing
• Tokenize
• Remove
duplicates
• Sort
Math
• Frequency
Discover
• Identify &
List the
documents
Search
Doc # Contents
1 Fantastic Beasts and Where to FindThem
2 Beasts of the SouthernWild
3 The Wild Life
4 Life of a Pi
Term Frequency Documents
and 2 1
beasts 2 1,2
fantastic 1 1
find 1 1
life 2 3,4
of 2 2,4
pi 1 4
southern 1 2
the 2 2,3
them 1 1
to 1 1
where 1 1
wild 2 2,3
Inverted Index
Installation
▪ Download from
www.elastic.co/downloads/elasticsearch
– Extract to your desired location
▪ Configuration
– Default port 9200
– Configure
▪ Config file location “~/elasticsearch-x.y.z/config/elasticsearch.yml“
▪ node name
▪ port
▪ path for log files etc.,
Run Elastic Server
▪ Go to “~/elasticsearch-2.4.0/bin/“
▪ Double click “elasticsearch.bat”
Indexing
Syntax
POST /{index}/{type}/{optional-id}
{
“key-1": "value",
"key-2": "value",
...
"key-n": "value",
}
Example
POST /sampleindex/sampletype/
{
"guestname": "Mr.J",
"arrivaldate": "2016/12/12",
"departuredate": "2016/12/14"
}
Querying
Syntax Example
Search
GET /{index}/_search GET demo/_search
Search by type & id
GET /{index}/{type}/{id} GET demo/reservation/1
Search by property
GET /{index}/_search?q={propName}=“value" GET /demo/_search?q=guestname="Mr.J"
Free search across index
GET /{index}/_search?q=‘value' GET demo/reservation/1
Deleting a Document
DELETE /{Index}/{Type}/{Id}
Eg:
DELETE demo/reservation/1
Review
▪ Introduction
▪ Terminology
– Index,Type, Document, Field
– Comparison with Relational Database
▪ Architecture
– Clusters, Nodes, Shards & Replicas
▪ Search
– How it works?
– Inverted Index
▪ Installation & Configuration
– Setup & Run Elastic Server
▪ Elastic in Action
– Indexing, Querying & Deleting
Elastic Search
Elastic Search

More Related Content

PDF
Introduction to elasticsearch
PDF
Introduction to Presto at Treasure Data
PPTX
quick intro to elastic search
PDF
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
PDF
MongoDB Fundamentals
PDF
Apache Spark on K8S Best Practice and Performance in the Cloud
PPTX
Elastic Stack Introduction
PPTX
Elastic search overview
Introduction to elasticsearch
Introduction to Presto at Treasure Data
quick intro to elastic search
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
MongoDB Fundamentals
Apache Spark on K8S Best Practice and Performance in the Cloud
Elastic Stack Introduction
Elastic search overview

What's hot (20)

PPTX
Programming in Spark using PySpark
PDF
Elasticsearch: An Overview
PPTX
elasticsearch_적용 및 활용_정리
PPTX
Introduction to Elasticsearch with basics of Lucene
ODP
Deep Dive Into Elasticsearch
PPTX
ElasticSearch Basic Introduction
PDF
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
PPTX
Introduction to Elasticsearch
PDF
Apache Spark Introduction
PPTX
Centralized log-management-with-elastic-stack
PPTX
PPTX
엘라스틱 서치 세미나
ODP
Elasticsearch for beginners
PDF
Introduction to Spark with Python
PDF
Elasticsearch 엘라스틱서치 (검색서비스) 에 대해 알아보자.txt
PPTX
Log management with ELK
PDF
Understanding and Improving Code Generation
PDF
이벤트 기반 분산 시스템을 향한 여정
PDF
Introduction to elasticsearch
PPTX
Kafka 101
Programming in Spark using PySpark
Elasticsearch: An Overview
elasticsearch_적용 및 활용_정리
Introduction to Elasticsearch with basics of Lucene
Deep Dive Into Elasticsearch
ElasticSearch Basic Introduction
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Introduction to Elasticsearch
Apache Spark Introduction
Centralized log-management-with-elastic-stack
엘라스틱 서치 세미나
Elasticsearch for beginners
Introduction to Spark with Python
Elasticsearch 엘라스틱서치 (검색서비스) 에 대해 알아보자.txt
Log management with ELK
Understanding and Improving Code Generation
이벤트 기반 분산 시스템을 향한 여정
Introduction to elasticsearch
Kafka 101
Ad

Viewers also liked (20)

PPTX
Webcast: AWS Sticker Shock? How can containers and automation help?
PPTX
Didáctica critica-situación aprendizaje
PPT
Violencia de género y técnicas didácticas
PPTX
20130112 Tellthestory2013リザルト
PPTX
Geoforensic
PPTX
An Introduction to Elastic Search.
PDF
Estudo Bíblico - Por que o mundo está como está?
PPTX
How may I help you? Benefits of focusing on services instead of products
PPT
Anatomia da Mão
PPTX
Automotive differential
PPT
Anatomia do Plexo Braquial e Vasos do M.S.
PPTX
Things that surprised me in 2016: space, physics, biology, psychology, histor...
PDF
Elasticsearch in 15 minutes
PDF
(Elastic)search in big data
PPTX
Scaling an ELK stack at bol.com
PPTX
ELK at LinkedIn - Kafka, scaling, lessons learned
PPTX
Limitations of first law of thermodynamics
PDF
341661479 coordinador-de-innovacion-y-soporte-tecnologico
Webcast: AWS Sticker Shock? How can containers and automation help?
Didáctica critica-situación aprendizaje
Violencia de género y técnicas didácticas
20130112 Tellthestory2013リザルト
Geoforensic
An Introduction to Elastic Search.
Estudo Bíblico - Por que o mundo está como está?
How may I help you? Benefits of focusing on services instead of products
Anatomia da Mão
Automotive differential
Anatomia do Plexo Braquial e Vasos do M.S.
Things that surprised me in 2016: space, physics, biology, psychology, histor...
Elasticsearch in 15 minutes
(Elastic)search in big data
Scaling an ELK stack at bol.com
ELK at LinkedIn - Kafka, scaling, lessons learned
Limitations of first law of thermodynamics
341661479 coordinador-de-innovacion-y-soporte-tecnologico
Ad

Similar to Elastic Search (20)

PDF
iOS: Using persistant storage
PDF
High Performance JSON Search and Relational Faceted Browsing with Lucene
PPTX
ElasticSearch Basics
PDF
Spark Summit EU talk by Ross Lawley
PDF
How To Connect Spark To Your Own Datasource
PPTX
The ELK Stack - Launch and Learn presentation
PPTX
Elasticsearch { "Meetup" : "talk" }
PPTX
NoSQL, SQL, NewSQL - methods of structuring data.
PDF
Intro to Elasticsearch
PPTX
PostgreSQL - Object Relational Database
PPTX
Infromation Reprentation, Structured Data and Semantics
PDF
ELK-Stack-Essential-Concepts-TheELKStack-LunchandLearn.pdf
PDF
ElasticSearch: Distributed Multitenant NoSQL Datastore and Search Engine
PDF
Flexible search in Apache Jackrabbit Oak
PDF
Elastic Search Training#1 (brief tutorial)-ESCC#1
PDF
Schema and Identity for Linked Data
PDF
Service Oriented Architecture - Unit II - Sax
PPTX
05 darwino db
PPT
Database
PPT
Oracle by Muhammad Iqbal
iOS: Using persistant storage
High Performance JSON Search and Relational Faceted Browsing with Lucene
ElasticSearch Basics
Spark Summit EU talk by Ross Lawley
How To Connect Spark To Your Own Datasource
The ELK Stack - Launch and Learn presentation
Elasticsearch { "Meetup" : "talk" }
NoSQL, SQL, NewSQL - methods of structuring data.
Intro to Elasticsearch
PostgreSQL - Object Relational Database
Infromation Reprentation, Structured Data and Semantics
ELK-Stack-Essential-Concepts-TheELKStack-LunchandLearn.pdf
ElasticSearch: Distributed Multitenant NoSQL Datastore and Search Engine
Flexible search in Apache Jackrabbit Oak
Elastic Search Training#1 (brief tutorial)-ESCC#1
Schema and Identity for Linked Data
Service Oriented Architecture - Unit II - Sax
05 darwino db
Database
Oracle by Muhammad Iqbal

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
KodekX | Application Modernization Development
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Advanced methodologies resolving dimensionality complications for autism neur...
KodekX | Application Modernization Development
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Monthly Chronicles - July 2025
The AUB Centre for AI in Media Proposal.docx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
NewMind AI Weekly Chronicles - August'25 Week I
Reach Out and Touch Someone: Haptics and Empathic Computing

Elastic Search