Presentation is loading. Please wait.

Presentation is loading. Please wait.

ElasticSearch Amaze business, make your devs happy curl -XGET Sebastian #EllerslieDNUG.

Similar presentations


Presentation on theme: "ElasticSearch Amaze business, make your devs happy curl -XGET Sebastian #EllerslieDNUG."— Presentation transcript:

1 ElasticSearch Amaze business, make your devs happy curl -XGET http://localhost:9200/http://localhost:9200/ Sebastian Belczyk, @sbelczyk25/03/2013 #EllerslieDNUG

2 ElasticSearch You know for search Real time search and analytics engine No-SQL Document database Use Lucene for indexing Its horizontally and verticaly scalable Automatic cluster formation Fault tolerant Zero config (at the begining) Nice RESTfull API

3 ElasticSearch Index dataSearch and retrive

4 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

5 Shrads allocation Node 1 P1P2 P3 Node 1 P1P2P3 Node 2 R1R2R3

6 Shrads allocation Node 1 P2P3 Node 2 R1R3 Node 3 P1 R2 Node 1 R1 P2 P3 Node 2 R1R2R3 Node 3 P1R2R3

7 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

8 Query example

9 { "query": { "filtered": { "query": { "match": { "name": { "query": "amd" } }, "filter": { "bool": { "must": [ { "term": { "category": "CPUs" } }, { "range": { "price": { "from": 200, "to": 300 } }, { "term": { "cores": "4" } ] }

10 .net Clients NEST PlainElastic.Net ElasticSearch.NET

11

12 Scoring Scoring functions Boost queries Boost filters Decay functions Custom score functions

13 Indexing Clinet Index Stored in transaction log Flush Indexed in ES Refresh Available for search

14 Indexing When indexing large amount of documents adjust: refresh_interval translog.flush_threshold_period translog.flush_threshold_ops

15 Testing

16 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

17 Tools Sense Kibana Logstash Marvel Rivers

18 Tools

19 Learning materials http://goo.gl/JUNWRZ Videos Articles Books http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.h tml http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.h tml


Download ppt "ElasticSearch Amaze business, make your devs happy curl -XGET Sebastian #EllerslieDNUG."

Similar presentations


Ads by Google