Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited elasticsearch and time based data Staying Ahead of Time Boaz Leskes @bleskes
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited indices,types and other animals Basics
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited A document { "created_at": "Fri Jan 24 11:15:24 +0000 2014", "id": 426674590560305150, "text": "Prepping up for my #elasticsearch talk this afternoon at the UvA : http://t.co/rqhBI5zys0", "user": { "name": “Boaz Leskes", "screen_name": "bleskes", } }
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited A type { "created_at": "Fri Jan 24 11:15:24 +0000 2014", "id": 426674590560305150, "text": "Prepping up for my #elasticsearch talk this afternoon at the UvA : http://t.co/rqhBI5zys0", "user": { "name": “Boaz Leskes", "screen_name": "bleskes", } } = docs with similar data/structure { "created_at": "Thu Jan 23 18:27:23 +0000 2014", "id": 426420915698544640, "text": "Elasticsearch es una maravilla !!!!", "user": { "name": "Abel Coronado", "screen_name": "abxda", } }
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Sharding index shard shard shard shard
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Important fact for later indexing & searching is done on shards, not indices
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited time based data To the subject at hand
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited easy to get, easy to index # curl -XPUT localhost:9200/tweets/tweet/426674590560305150 -d '{ "created_at": "Fri Jan 24 11:15:24 +0000 2014", "id": 426674590560305150, "text": "Prepping up for my #elasticsearch talk this afternoon at the UvA : http://t.co/rqhBI5zys0", "user": { "name": “Boaz Leskes", "screen_name": "bleskes", } }'
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Reminds of a tile at my aunt’s house Today is the tomorrow we were all afraid of yesterday….
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited August 1 2 3 September 1 2 3 October 1 2 3
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited one little tweak… # curl -XPUT localhost:9200/tweets_201310/tweet/426674590560305150 -d '{ "created_at": "Fri Jan 24 11:15:24 +0000 2014", "id": 426674590560305150, "text": "Prepping up for my #elasticsearch talk this afternoon at the UvA : http://t.co/rqhBI5zys0", "user": { "name": “Boaz Leskes", "screen_name": "bleskes", } }'
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Another fact index is the basic unit of configuration
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited Implications • Use indices to manage data as it scales
• Use aliases to efficiently point your searches at the relevant shards
Copyright Elasticsearch 2013. Copying, publishing and/or distributing without written permission is strictly prohibited One More Thing.. Time is just a (strictly) monotonic function