SlideShare a Scribd company logo
3
Most read
7
Most read
11
Most read
Elasticsearch
(Presentation 01)
By
Maruf Hassan
Email: maruf571@gmail.com
Contents
● Introduction
● Installation
● Configuration
● Tools(plugin)
● Terms used in Elasticsearch
● Talking with Elasticsearch
● Indexing data
● Retrieving data
Introduction
What is Elasticsearch?
● Elasticsearch is an open-source search engine
● Elasticsearch is written in Java
● Built on top of Apache Lucene™
● A distributed real-time document store where
every field is indexed and searchable
● A distributed search engine with real-time
analytics
Installation
Setup
● Download zip file for elasticsearch web site
(https://www.elastic.co/downloads/elasticsearch)
● Unzip it anywhere in you pc
Run
● Go to unzip directory & run the following command
./bin/elasticsearch
Test
● To test installation hit on browser @ http://localhost:9200/?pretty or
curl 'http://localhost:9200/?pretty'
“You Know, for Search” Yahoo! everything is file :)
Configuration
● elasticsearch.yml file is the main configuration
file in the config directory
● Need restart Elasticsearch to perform update
configuration(if you edit elasticsearch.yml )
Tools(plugin)
Installation
● Marvel (plugin) is a monitoring tools, to install
./bin/plugin -i elasticsearch/marvel/latest
● Sense is interactive console inside Marvel.(I like it very much)
● Elasticsearch-head is a document browser, to install
./bin/plugin -install mobz/elasticsearch-head
Run
● To run marvel hit brouwser @ http://localhost:9200/_plugin/marvel/
● To run sence hit brouwser @ http://localhost:9200/_plugin/marvel/sense/
● To run head hit brouwser @ http://localhost:9200/_plugin/head/
Terms used in Elasticsearch
● node: running instance of Elasticsearch
● cluster: group of nodes with the same cluster
name
● elasticsearch = relational DB
● indices = databases
● types = tables
● documents = rows
Terms used in Elasticsearch
● fields = columns
● index (noun) = like a database in a traditional relational
database
● Index (verb) = to index a document is to store a document
in an index (noun)
● Inverted index = relational databases add an index, such
as a B-tree index, to specific columns in order to improve
the speed of data retrieval. Elasticsearch and Lucene use
a structure called an inverted index for exactly the same
purpose.
Talking to Elasticsearch
Two way for java. Node client & Transport client
1. Node client: Work as a node in local cluster, but don’t hold any data
2. Transport client: Send request to remote cluster, don’t join
One way for all
● RESTful API with JSON over HTTP
Port
● Both Java clients talk to the cluster over port 9300
● All other languages can communicate with Elasticsearch over port 9200
using RESTful API
Indexing data
● PUT verb used for indexing(inserting data)
●
URL path contains three pieces of information
index_name/type_name/id_of_document
● PUT body contain the document as a json
Example:
PUT /cefalo/employee/1
{
"first_name" : "Maruf",
"last_name" : "Hassan",
"age" : 28,
"about" : "Happy to help",
"interests": [ "science", "music", "internet" ]
}
Retrieve data
Two way to retrieve data from Elasticsearch. Search Lite & Query DSL
Search Lite
● allows us to build ad hoc searches
● parameters to be passed in the query string
● Used only for test environment
Query DSL
● allows us to build much more complicated, robust queries
● expects a JSON request body and uses a rich search language called the
query DSL
● Used for production environment
Retrieve data(Search Lite)
● Search for all employees in the index cefalo
GET /cefalo/employee/_search
● searching for employees with their last name in
cefalo index
GET /cefalo/employee/_search?
q=last_name:hassan
Retrieve data(Query DSL)
● Search for all employees in the cefalo index
GET /cefalo/employee/_search{
}
● Searching for employees with their last name in the cefalo index
GET /cefalo/employee/_search
{
"query" : {
"match" : {
"last_name" : "Hassan"
}
}
}
Thanks
&

More Related Content

PPTX
An Introduction to Elastic Search.
PDF
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
PDF
Elasticsearch From the Bottom Up
ODP
Deep Dive Into Elasticsearch
PPTX
ElasticSearch Basic Introduction
PDF
Introduction to elasticsearch
PPTX
Elastic search overview
PDF
Introduction to elasticsearch
An Introduction to Elastic Search.
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
Elasticsearch From the Bottom Up
Deep Dive Into Elasticsearch
ElasticSearch Basic Introduction
Introduction to elasticsearch
Elastic search overview
Introduction to elasticsearch

What's hot (20)

PPTX
Introduction to Elasticsearch with basics of Lucene
PDF
Introduction to Elasticsearch
PDF
Elasticsearch
PDF
ELK Stack
PPTX
Elasticsearch
PPSX
What I learnt: Elastic search & Kibana : introduction, installtion & configur...
PDF
Data Stores @ Netflix
PDF
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
PDF
Elasticsearch in Netflix
PDF
ElasticSearch in action
PDF
Introduction à ElasticSearch
PDF
GitHub Actions with Node.js
PDF
OSMC 2021 | Introduction into OpenSearch
PPTX
quick intro to elastic search
PDF
Découverte de Elastic search
ODP
Elasticsearch for beginners
PPTX
Elasticsearch Introduction
PPTX
Elastic Stack Introduction
PDF
Elasticsearch for Data Analytics
PPTX
Centralized log-management-with-elastic-stack
Introduction to Elasticsearch with basics of Lucene
Introduction to Elasticsearch
Elasticsearch
ELK Stack
Elasticsearch
What I learnt: Elastic search & Kibana : introduction, installtion & configur...
Data Stores @ Netflix
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Elasticsearch in Netflix
ElasticSearch in action
Introduction à ElasticSearch
GitHub Actions with Node.js
OSMC 2021 | Introduction into OpenSearch
quick intro to elastic search
Découverte de Elastic search
Elasticsearch for beginners
Elasticsearch Introduction
Elastic Stack Introduction
Elasticsearch for Data Analytics
Centralized log-management-with-elastic-stack
Ad

Viewers also liked (7)

PDF
Elasticsearch in 15 minutes
PDF
Introduction to Elasticsearch
PDF
Apache Solr/Lucene Internals by Anatoliy Sokolenko
PPT
Lucene basics
PDF
What is in a Lucene index?
PDF
Elasticsearch Introduction to Data model, Search & Aggregations
PPTX
10 Tips for Making Beautiful Slideshow Presentations by www.visuali.se
Elasticsearch in 15 minutes
Introduction to Elasticsearch
Apache Solr/Lucene Internals by Anatoliy Sokolenko
Lucene basics
What is in a Lucene index?
Elasticsearch Introduction to Data model, Search & Aggregations
10 Tips for Making Beautiful Slideshow Presentations by www.visuali.se
Ad

Similar to Elasticsearch presentation 1 (20)

PDF
Using ElasticSearch as a fast, flexible, and scalable solution to search occu...
PPTX
Attack monitoring using ElasticSearch Logstash and Kibana
PPTX
Perl and Elasticsearch
PDF
[2 d1] elasticsearch 성능 최적화
PDF
[2D1]Elasticsearch 성능 최적화
PPTX
Elastic search
PDF
Workshop: Learning Elasticsearch
PPTX
ElasticSearch for .NET Developers
PPTX
06 integrate elasticsearch
PPTX
Elasticsearch python
PPTX
Elastic search
PPT
Apache Lucene Searching The Web
ODP
Apache Lucene: Searching the Web and Everything Else (Jazoon07)
PDF
Elasticsearch Architechture
PDF
Elasticsearch
PDF
Elasticsearch JVM-MX Meetup April 2016
PDF
Elasticsearch, a distributed search engine with real-time analytics
PPTX
Getting Started With Elasticsearch In .NET
PPTX
Getting started with Elasticsearch in .net
PDF
Elasticsearch quick Intro (English)
Using ElasticSearch as a fast, flexible, and scalable solution to search occu...
Attack monitoring using ElasticSearch Logstash and Kibana
Perl and Elasticsearch
[2 d1] elasticsearch 성능 최적화
[2D1]Elasticsearch 성능 최적화
Elastic search
Workshop: Learning Elasticsearch
ElasticSearch for .NET Developers
06 integrate elasticsearch
Elasticsearch python
Elastic search
Apache Lucene Searching The Web
Apache Lucene: Searching the Web and Everything Else (Jazoon07)
Elasticsearch Architechture
Elasticsearch
Elasticsearch JVM-MX Meetup April 2016
Elasticsearch, a distributed search engine with real-time analytics
Getting Started With Elasticsearch In .NET
Getting started with Elasticsearch in .net
Elasticsearch quick Intro (English)

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Introduction to Artificial Intelligence
PDF
Nekopoi APK 2025 free lastest update
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Digital Strategies for Manufacturing Companies
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Transform Your Business with a Software ERP System
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPT
Introduction Database Management System for Course Database
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
medical staffing services at VALiNTRY
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Online Work Permit System for Fast Permit Processing
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How to Choose the Right IT Partner for Your Business in Malaysia
Odoo Companies in India – Driving Business Transformation.pdf
L1 - Introduction to python Backend.pptx
Introduction to Artificial Intelligence
Nekopoi APK 2025 free lastest update
ISO 45001 Occupational Health and Safety Management System
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Digital Strategies for Manufacturing Companies
Design an Analysis of Algorithms I-SECS-1021-03
Operating system designcfffgfgggggggvggggggggg
Transform Your Business with a Software ERP System
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Design an Analysis of Algorithms II-SECS-1021-03
Upgrade and Innovation Strategies for SAP ERP Customers
Introduction Database Management System for Course Database
2025 Textile ERP Trends: SAP, Odoo & Oracle
medical staffing services at VALiNTRY
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Online Work Permit System for Fast Permit Processing

Elasticsearch presentation 1

  • 2. Contents ● Introduction ● Installation ● Configuration ● Tools(plugin) ● Terms used in Elasticsearch ● Talking with Elasticsearch ● Indexing data ● Retrieving data
  • 3. Introduction What is Elasticsearch? ● Elasticsearch is an open-source search engine ● Elasticsearch is written in Java ● Built on top of Apache Lucene™ ● A distributed real-time document store where every field is indexed and searchable ● A distributed search engine with real-time analytics
  • 4. Installation Setup ● Download zip file for elasticsearch web site (https://www.elastic.co/downloads/elasticsearch) ● Unzip it anywhere in you pc Run ● Go to unzip directory & run the following command ./bin/elasticsearch Test ● To test installation hit on browser @ http://localhost:9200/?pretty or curl 'http://localhost:9200/?pretty' “You Know, for Search” Yahoo! everything is file :)
  • 5. Configuration ● elasticsearch.yml file is the main configuration file in the config directory ● Need restart Elasticsearch to perform update configuration(if you edit elasticsearch.yml )
  • 6. Tools(plugin) Installation ● Marvel (plugin) is a monitoring tools, to install ./bin/plugin -i elasticsearch/marvel/latest ● Sense is interactive console inside Marvel.(I like it very much) ● Elasticsearch-head is a document browser, to install ./bin/plugin -install mobz/elasticsearch-head Run ● To run marvel hit brouwser @ http://localhost:9200/_plugin/marvel/ ● To run sence hit brouwser @ http://localhost:9200/_plugin/marvel/sense/ ● To run head hit brouwser @ http://localhost:9200/_plugin/head/
  • 7. Terms used in Elasticsearch ● node: running instance of Elasticsearch ● cluster: group of nodes with the same cluster name ● elasticsearch = relational DB ● indices = databases ● types = tables ● documents = rows
  • 8. Terms used in Elasticsearch ● fields = columns ● index (noun) = like a database in a traditional relational database ● Index (verb) = to index a document is to store a document in an index (noun) ● Inverted index = relational databases add an index, such as a B-tree index, to specific columns in order to improve the speed of data retrieval. Elasticsearch and Lucene use a structure called an inverted index for exactly the same purpose.
  • 9. Talking to Elasticsearch Two way for java. Node client & Transport client 1. Node client: Work as a node in local cluster, but don’t hold any data 2. Transport client: Send request to remote cluster, don’t join One way for all ● RESTful API with JSON over HTTP Port ● Both Java clients talk to the cluster over port 9300 ● All other languages can communicate with Elasticsearch over port 9200 using RESTful API
  • 10. Indexing data ● PUT verb used for indexing(inserting data) ● URL path contains three pieces of information index_name/type_name/id_of_document ● PUT body contain the document as a json Example: PUT /cefalo/employee/1 { "first_name" : "Maruf", "last_name" : "Hassan", "age" : 28, "about" : "Happy to help", "interests": [ "science", "music", "internet" ] }
  • 11. Retrieve data Two way to retrieve data from Elasticsearch. Search Lite & Query DSL Search Lite ● allows us to build ad hoc searches ● parameters to be passed in the query string ● Used only for test environment Query DSL ● allows us to build much more complicated, robust queries ● expects a JSON request body and uses a rich search language called the query DSL ● Used for production environment
  • 12. Retrieve data(Search Lite) ● Search for all employees in the index cefalo GET /cefalo/employee/_search ● searching for employees with their last name in cefalo index GET /cefalo/employee/_search? q=last_name:hassan
  • 13. Retrieve data(Query DSL) ● Search for all employees in the cefalo index GET /cefalo/employee/_search{ } ● Searching for employees with their last name in the cefalo index GET /cefalo/employee/_search { "query" : { "match" : { "last_name" : "Hassan" } } }