0% found this document useful (0 votes)
0 views

Introduction to Elasticsearch

Elasticsearch is an open-source search and analytics engine that enables complex search functionalities for various data types, such as blog posts and products. It supports querying both full-text and structured data, making it useful for analytics and application performance management. Additionally, Elasticsearch utilizes machine learning for anomaly detection and can efficiently handle large volumes of data, providing insights and forecasts based on the data stored.

Uploaded by

NandaShivani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Introduction to Elasticsearch

Elasticsearch is an open-source search and analytics engine that enables complex search functionalities for various data types, such as blog posts and products. It supports querying both full-text and structured data, making it useful for analytics and application performance management. Additionally, Elasticsearch utilizes machine learning for anomaly detection and can efficiently handle large volumes of data, providing insights and forecasts based on the data stored.

Uploaded by

NandaShivani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

INTRODUCTION

TO
ELASTICSEARCH
Shivani Nanda
Elasticsearch

Elasticsearch is an open
search
analytics and full-text
search engine
enabling search
EMPLOYING ELASTICSEARCH : CASE STUDY 3

• Suppose we have a blog or a webshop where we want the


users to be able to search for various kinds of data like blog
posts, products, categories, etc.

• We can build complex search functionalities with Elasticsearch


similar to what we see in Google search engine i.e. it provides
all features of a typical search engine like auto completion,
4
IMPLEMENTING SEARCH FOR A WEB SHOP USING
ELASTICSEARCH
• Suppose we want to
implement searching
for a web shop where
besides for searching
through product names
and other full-text
fields we might want
to take many other
factors into account
when sorting the results
• If products have rating we probably want to boost the relevance of highly
rated products we may also want to allow users to filter results by price
range, size, color, brand, and sort by price or relevance
5
QUERY AND ANALYZE STRUCTURED DATA
• Full-text searches is not the
only capability of Elasticsearch
• We can also query structured
data such as numbers and
aggregate data and use
Elasticsearch as an analytics
platform
• We can write queries that aggregate data and use the results for
making pie-charts, line charts, as per the need
• Elasticsearch is not really a business intelligence solution but we can
indeed get a lot of valuable information out of the data that we store
within Elasticsearch
6
QUERY AND ANALYZE STRUCTURED DATA
• An example would be to store logs
from applications and various server
system metrics and then analyzing
these along with alerting setup
• We might want to keep track of the
number of errors for a web application
or the CPU and memory usage of the servers and then show that on a line
chart
7
APPLICATION PERFORMANCE
MANAGEMENT(APM)
• Application Performance Management or APM, is a quite common use case
of Elasticsearch or Elastic Stack
8
SENDING EVENTS TO ELASTICSEARCH

• It is another very common thing to do is to send events to


Elasticsearch which can be anything like sales, website clicks,
phone calls, etc.
• Elasticsearch is Excellent at Analyzing Huge Data
• Suppose we are sending lots of sales data from physical
stores to Elasticsearch in which case we can analyze which
store sells the most This can be done using the concept of
aggregations known to us from relational databases
• Forecast Future values with Machine Learning
• Elasticsearch can analyze huge amount of data and then
9
SENDING EVENTS TO ELASTICSEARCH

• Efficient Capacity Management


• Suppose we are keeping
track of how many calls are
made to a support department
and then forecast the number
of support staff that will be
needed in the future
• Suppose we are keeping track
of how many visitors are there
for a particular web site so that
we can forecast if and when we
would need additional webservers
10
ANOMALITY DETECTION
• Suppose the number of visitors
to a web site is generally 50,000
• Then probably there is something
wrong if suddenly, it drops down
to 5,000 for instance
• Monitoring the entire event on a daily basis can be time consuming
• So we can Machine Learning to learn the “norm” and let us know if there is
an anomaly. i.e. a significant deviation from the normal behavior( here if it
drops below 50,000 to an unacceptable number as 5,000)
• All this is in place ready to be used without the need for specifying the rules
or setting up the thresholds
• We can further extend the whole process to set up an alert to be notified
when something unusual happens, through an e-mail or a message on slack
11
HOW DOES ELASTICSEARCH WORK
• In Elasticsearch data is stored as documents which is just a unit of
information
• A document in Elasticsearch is similar to a row in a relational database i.e.
MySQL and can represent a sale, a person, a product, etc.
• A document is separated into fields which represent columns in a relational
database
12
QUERYING ELASTICSEARCH
• In Elasticsearch we query documents by using a REST API( Restful APIs are
just a way of designing HTTP APIs
• The queries we write to
Elasticsearch are also
written in JSON and hence
the API is fairly easy to use
• Elasticsearch is written in JAVA and is built on top of Apache Lucene
• Elasticsearch has gained a lot of popularity due its relative ease of use and
the fact that it scales extremely well
• Elasticsearch being distributed in nature it scales very well in terms of
increasing data volumes and query throughput
• Even in case of millions of documents searches can still be at lightning fast
13
COMPANIES THAT USE ELASTICSEARCH

• There are many companies


that use Elasticsearch
• There is a vibrant community
that supports Elasticsearch
SUMMARY 14

• Elasticsearch is by far the hottest name in search


engines

• Equipped with search capabilities, machine


learning features, anomality detection measures
and what not…

• Handles data mostly as documents based on


JSON format
THANK YOU
Shivani Nanda
reachshivaninanda.@gmail
.com
B
16
17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy