ElasticSearch Amaze business, make your devs happy curl -XGET //localhost:9200/ Sebastian Belczyk,...
-
Upload
marcelo-musgrove -
Category
Documents
-
view
231 -
download
0
Transcript of ElasticSearch Amaze business, make your devs happy curl -XGET //localhost:9200/ Sebastian Belczyk,...
ElasticSearchAmaze business, make your devs happy
curl -XGET http://localhost:9200/
Sebastian Belczyk, @sbelczyk
25/03/2013 #EllerslieDNUG
ElasticSearch
You know for search
Real time search and analytics engine
No-SQL Document database
Use Lucene for indexing
It’s horizontally and verticaly scalable
Automatic cluster formation
Fault tolerant
Zero config (at the begining)
Nice RESTfull API
ElasticSearch
SQL DB
Index data
Application
Search and retrive
Data storege
ElasticSearch stores documents in indices
Each index can contain multiple types of documents
Index is splited into multiple shards
Each shard may be stored on a different node
Shrads allocation
Node 1P1
P2
P3
Node 1P1
P2
P3
Node 2R1
R2
R3
Shrads allocation
Node 1P2
P3
Node 2R1
R3
Node 3P1
R2
Node 1R1
P2
P3
Node 2R1
R2
R3
Node 3P1
R2
R3
Quering Search
Words and n-grams
Geo location
Date and time
Value ranges
Fuzzy maching
Facets and Aggregations
Distinct values for given field with document count
Statistics for numeric fileds (average, min, max)
Time series
Suggestions
Autocomplete
Did you mean
More like
Query example
{ "query": { "filtered": { "query": { "match": { "name": { "query": "amd" } } }, "filter": { "bool": { "must": [ { "term": { "category": "CPUs" } }, { "range": { "price": { "from": 200, "to": 300 } } }, { "term": { "cores": "4" } } ] } } } }}
.net Clients
NEST
PlainElastic.Net
ElasticSearch.NET
Scoring
Scoring functions
Boost queries
Boost filters
Decay functions
Custom score functions
Indexing
ClinetIndex
• Stored in transaction log
Flush
• Indexed in ES
Refresh
• Available for search
Testing
Deployment
Requirements:
Java Server JRE
JAVA_HOME variable pointing to JRE (not bin)
Steps
From ElasticSearch dir run bin/service install
Change service start mode to automatic and run service
Tools
Sense
Kibana
Logstash
Marvel
Rivers
Tools
Learning materials
http://goo.gl/JUNWRZ
Videos
Articles
Books
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.html