Hi
What we are going to
talk?
• Elasticsearch technology - http://www.elasticsearch.org
• What is Elasticsearch?
• How it works?
• Elasticsearch and Drupal – Demo
http://www.drupal.org/project/elasticsearch_connector
Who made
Elasticsearch?
• Shay Banon
• http://www.kimchy.org/
• https://github.com/kimchy
• https://twitter.com/kimchy/
Who is using it?
Why they use it?
• Distributed out of the box - Incredible easy to make cluster, just start
new node!
• High availability
• Real time index/search
• REST API with JSON
• Build on top of Apache Lucene and Open Source
http://github.com/elasticsearch/elasticsearch
• Schema free
• Document oriented
How to install it?
How to install it?
How to install it?
If using Chrome?
Sense
Indices API – Create
index
index
Node
2
How distributed works?
Node
1
PUT /twitter
index:
number_of_shards:3
number_of_replicas:1
1P 2P
3P
2P 1R
3R
2R
Node
3
3P 1R3R
2R3R
Node
2
Multiple indices
Node
1
1P 2P2R
Node
3
3P 1R3R
PUT /news?pretty
index:
number_of_shards:3
number_of_replicas:1
1N
P
2N
R
2N
P
3N
R
3N
P
1N
R
Index API - Request
index type id
Node
2
Distributed indexing
Node
1
PUT /twitter/tweet/1
{….}
1P 2P2R
Node
3
3P 1R3R
Index API - Response
Get API - Req and Res
Node
2
Distributed GET
Node
1
GET /twitter/tweet/1
1P 2P2R
Node
3
3P 1R3R
Search API - Request
Node
2
Distributed search
Node
1
GET /twitter/_search?q=kimchy
1P 2P2R
Node
3
3P 1R3R
Update document
PUT the document again or…
Delete document
Delete index
How full text search
works?
Search for: “berlin tweet”
Inverted index
1. Separate the string into words
2. Create sorted unique list
3. Specify which documents contains this terms
TERMS DOC 1 DOC 2 DOC 3
berlin X
looking X
tweet X X
presentation
s
X
elastic X X
trying X
Analysis
Tokenization + Normalization
or
tokenizer + token filters (>=0)
More features
DSL Query language
Facets/Aggregation API
Aliasing
Percolating
GEO searching
Attachments
s.o.
Video resources
http://www.youtube.com/watch?v=fEsmydn747c
http://www.youtube.com/watch?v=lpZ6ZajygDY
http://www.youtube.com/watch?v=52G5ZzE0XpY
http://www.elasticsearch.org/videos/
Elasticsearch and Drupal
Drupal Demo time!
Roadmap
Thank you!
Questions
?

Drupal and Elasticsearch