Skip to content

Instantly share code, notes, and snippets.

@timhaines
Created December 3, 2013 05:07
Show Gist options
  • Save timhaines/7764139 to your computer and use it in GitHub Desktop.
Save timhaines/7764139 to your computer and use it in GitHub Desktop.
Elastic Search Notes
## Useful Links
* Home Page - http://www.elasticsearch.org/
* Git HomePage - more info, less marketing: https://github.com/elasticsearch/elasticsearch
* Glossary - http://www.elasticsearch.org/guide/reference/glossary/
* Hands on Intro - Hammer Time - https://github.com/s1monw/hammertime
* Node client - https://github.com/phillro/node-elasticsearch-client
* Mongo River - to stream data in from Mongo - https://github.com/richardwilly98/elasticsearch-river-mongodb/
* How to setup with Chef Solo - http://www.elasticsearch.org/tutorials/deploying-elasticsearch-with-chef-solo/
* Elastic Search on EC2 - http://www.elasticsearch.org/tutorials/elasticsearch-on-ec2/
## Notes
* An 'index' is similar to a collection in Mongo. It's the container that stores the data for one collection.
* Number of shards and replicas is set per index.
* Re Multi-tenancy, Clinton for ES core team recommends not using a index per tenant. http://elasticsearch-users.115913.n3.nabble.com/What-is-best-indexing-strategy-for-multitenant-data-td2904545.html
## Limitations
* Once number of shards is set, it can't be changed for an index. Instead a new index has to be created. See reindex with zero downtime: http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment