ElasticSearch
 A search engine “ready to fly”




                                  Medcl/2012/2/18
About me
• Medcl




•   medcl@sina
•   medcl@github
•   m@medcl.net
•   log.medcl.net
Why I am here?
• 好东西需要与大家一起分享!
What’s elasticsearch
• “Distributed, (Near) Real Time, Search Engine”

•   Open Source(Apache 2.0)
•   RESTful
•   Free Schema(Dynamic)
•   MultiTenant
•   Scalable
•   High Availability
•   Rich Search Features
•   Good Extensibility
•   ……
first impression
Elastic search intro-@lamper
Elastic search intro-@lamper
Let’s start
 the trip
Debug Tools
Index a document
curl –XPOST http://localhost:9200/myindex/share/1
-d’ Field
                      字段内容
      字段名称                                 RESTful
{                                          URL地址
  "url" : "http://www.lamper.cn/",
  "date" : "2012-02-18 13:00:00",
  "location" : "beijing,北京"
}’

                      索引文档内容,
                        Json格式
Index Response
{
    "ok": true,
    "_index": "myindex",
    "_type": "share",
    "_id": "1",
    "_version": 1
}
Explain the url

                              索引文档
  服务器IP地址         索引名称
                              唯一标识

http://localhost:9200/myindex/share/1

     HTTP端口          索引类型名称
Query the document

  ES服务器地址                 类型名称       指定查询条件
curl –XGET
http://localhost:9200/myindex/share/_search?q
=location:beijing
                      索引名称         搜索RESTful接口
    查询条件,
    字段名:值
Search Response
{ "took": 12, "timed_out": false,
   "_shards": {      "total": 5,   "successful": 5,   "failed": 0 },
   "hits": {
     "total": 1,     "max_score": 0.5,
     "hits": [ {
           "_index": "myindex",
           "_type": "share",
           "_id": "1",
           "_score": 0.5,
           "_source": {
             "url": "http://www.lamper.cn/",
             "date": "2012-02-18 13:00:00",
             "location": "beijing,北京"
           }       }    ] }}
Queries
http://localhost:9200/myindex/share/_search?q=
beijing
http://localhost:9200/myindex/share,conf/_searc
h?q=beijing
http://localhost:9200/myindex/_search?q=beijing
http://localhost:9200/myindex,myindex2/_search
?q=beijing
http://localhost:9200/_search?q=beijing
QueryDSL
curl -XPOST
http://localhost:9200/myindex/_search –d’
{
   "query": {                   Why QueryDSL?
     "term": {                Filters、Caching、
       "location": "beijing" Highlighting、Facet、
                                ComplexQuery
     }                                ……

   }
}’
Scalability&HA
Distributed Lucene Directory
• Each index is fully sharded with a configurable
  number of shards.
• Each shard can have zero or more replicas.
• Read / Search operations performed on either
  replica shard.
Automatic shard allocation




From:http://www.slideshare.net/elasticsearch/elasticsearch-at-berlinbuzzwords-2010#
Scalability
• nodes that can hold data, and nodes that do
  not.
• There is no need for a load balancer in
  elasticsearch, each node can receive a request,
  and if it can’t handle it, it will automatically
  delegate it to the appropriate node(s).
• If you want to scale out search, you can simply
  have more shard replicas per shard.
Transaction log
•   Indexed / deleted doc is fully persistent
•   No need for a Lucene IndexWriter#commit
•   Managed using a transaction log / WAL
•   Full single node durability (kill dash 9)
•   Utilized when doing hot relocation of shards
•   Periodically “flushed” (calling IW#commit)
BASE
• Each document you index is there once the
  index operation is done.
• No need to commit or something similar to
  get everything persisted.
• A shard can have 1 or more replicas for HA.
• Gateway persistency is done in the
  background in an async manner.
Not Mentioned Here…
•   Versioning
•   Template
•   River
                        That’s Too Much,
•   Percolator          Discovery it yourself
•   PartialUpdate
•   Routing
•   Parent-Child Type
•   Scripting
•   ……
Community&Support
• http://github.com/elasticsearch
• http://groups.google.com/group/elasticsearch
• Irc:#elasticsearch@freenode

• qq群:190605846
• http://doc.elasticsearch.cn
• http://s.medcl.net/
BTW
• 招人in’
  – 分布式
  – 高性能
  – 海量数据处理
  – 个性化推荐            My
  – 搜索引擎           Company!




• 对以上任一感兴趣者:
  – 欢迎加入我们的团伙!
Thank you!

More Related Content

PPTX
曾勇 Elastic search-intro
PDF
10gen MongoDB Video Presentation at WebGeek DevCup
PDF
Data modeling for Elasticsearch
PDF
ElasticSearch - index server used as a document database
PDF
Dcm#8 elastic search
PDF
James elastic search
KEY
Practical Ruby Projects With Mongo Db
PPTX
Intro To Mongo Db
曾勇 Elastic search-intro
10gen MongoDB Video Presentation at WebGeek DevCup
Data modeling for Elasticsearch
ElasticSearch - index server used as a document database
Dcm#8 elastic search
James elastic search
Practical Ruby Projects With Mongo Db
Intro To Mongo Db

What's hot (20)

PPTX
Intro to elasticsearch
PPTX
ElasticSearch for data mining
PPTX
Elastic Search
PDF
Introduction to MongoDB
PDF
Introduction to mongo db
PPTX
Building Your First Application with MongoDB
PPTX
Presentation: mongo db & elasticsearch & membase
PPTX
An Introduction to Elastic Search.
PDF
Elastic Search
PDF
Building your first app with MongoDB
PDF
MongoDB and Schema Design
PDF
PPTX
BigData, NoSQL & ElasticSearch
PPTX
Elasticsearch
PDF
Webinar: Developing with the modern App Stack: MEAN and MERN (with Angular2 a...
PPTX
MongoDB 101
PPTX
Philly PHP: April '17 Elastic Search Introduction by Aditya Bhamidpati
KEY
MongoDB Hadoop DC
PPTX
Introduction to MongoDB
PDF
Elasticsearch: You know, for search! and more!
Intro to elasticsearch
ElasticSearch for data mining
Elastic Search
Introduction to MongoDB
Introduction to mongo db
Building Your First Application with MongoDB
Presentation: mongo db & elasticsearch & membase
An Introduction to Elastic Search.
Elastic Search
Building your first app with MongoDB
MongoDB and Schema Design
BigData, NoSQL & ElasticSearch
Elasticsearch
Webinar: Developing with the modern App Stack: MEAN and MERN (with Angular2 a...
MongoDB 101
Philly PHP: April '17 Elastic Search Introduction by Aditya Bhamidpati
MongoDB Hadoop DC
Introduction to MongoDB
Elasticsearch: You know, for search! and more!

Similar to Elastic search intro-@lamper (20)

PDF
Elastic Search Training#1 (brief tutorial)-ESCC#1
PDF
Elasticsearch JVM-MX Meetup April 2016
PPTX
ElasticSearch AJUG 2013
PDF
Workshop: Learning Elasticsearch
KEY
Mongodb intro
KEY
Elasticsearch & "PeopleSearch"
PDF
REST easy with API Platform
PDF
Using ElasticSearch as a fast, flexible, and scalable solution to search occu...
PPTX
PDF
Building APIs in an easy way using API Platform
PPTX
Webinar: Building Your First Application with MongoDB
KEY
Practical Use of MongoDB for Node.js
PPTX
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
PDF
ElasticSearch: Distributed Multitenant NoSQL Datastore and Search Engine
PDF
Couchdb Nosql
PDF
Building APIs in an easy way using API Platform
PPTX
Elastic pivorak
PPTX
A Presentation on MongoDB Introduction - Habilelabs
ODP
Elastic Search
PPTX
Eyeing the Onion
Elastic Search Training#1 (brief tutorial)-ESCC#1
Elasticsearch JVM-MX Meetup April 2016
ElasticSearch AJUG 2013
Workshop: Learning Elasticsearch
Mongodb intro
Elasticsearch & "PeopleSearch"
REST easy with API Platform
Using ElasticSearch as a fast, flexible, and scalable solution to search occu...
Building APIs in an easy way using API Platform
Webinar: Building Your First Application with MongoDB
Practical Use of MongoDB for Node.js
Elasticsearch, Logstash, Kibana. Cool search, analytics, data mining and more...
ElasticSearch: Distributed Multitenant NoSQL Datastore and Search Engine
Couchdb Nosql
Building APIs in an easy way using API Platform
Elastic pivorak
A Presentation on MongoDB Introduction - Habilelabs
Elastic Search
Eyeing the Onion

More from medcl (6)

PDF
Using SaltStack To AutoDeploy ElasticSearch
PDF
ElasticSearch Training#2 (advanced concepts)-ESCC#1
PPTX
Git 使用介绍
PPTX
数据挖掘理论与实践
PPTX
quick intro to elastic search
PPTX
Restful
Using SaltStack To AutoDeploy ElasticSearch
ElasticSearch Training#2 (advanced concepts)-ESCC#1
Git 使用介绍
数据挖掘理论与实践
quick intro to elastic search
Restful

Recently uploaded (20)

PPTX
Presentation - Principles of Instructional Design.pptx
PDF
NewMind AI Journal Monthly Chronicles - August 2025
PDF
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
PPTX
Blending method and technology for hydrogen.pptx
PDF
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
PPTX
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
PPTX
maintenance powerrpoint for adaprive and preventive
PDF
Domain-specific knowledge and context in large language models: challenges, c...
PDF
Be ready for tomorrow’s needs with a longer-lasting, higher-performing PC
PDF
Intravenous drug administration application for pediatric patients via augmen...
PDF
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PPTX
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PDF
Slides World Game (s) Great Redesign Eco Economic Epochs.pdf
PPTX
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
PDF
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
PDF
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
Advancements in abstractive text summarization: a deep learning approach
Presentation - Principles of Instructional Design.pptx
NewMind AI Journal Monthly Chronicles - August 2025
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
Blending method and technology for hydrogen.pptx
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
From XAI to XEE through Influence and Provenance.Controlling model fairness o...
maintenance powerrpoint for adaprive and preventive
Domain-specific knowledge and context in large language models: challenges, c...
Be ready for tomorrow’s needs with a longer-lasting, higher-performing PC
Intravenous drug administration application for pediatric patients via augmen...
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Slides World Game (s) Great Redesign Eco Economic Epochs.pdf
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
Advancements in abstractive text summarization: a deep learning approach

Elastic search intro-@lamper