Skip to content

Instantly share code, notes, and snippets.

@FUT
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FUT/11223667 to your computer and use it in GitHub Desktop.
Save FUT/11223667 to your computer and use it in GitHub Desktop.
Elasticsearch
cluster.name: engine_development
index.number_of_shards: 2
index.number_of_replicas: 1
index.query.bool.max_clause_count: 1000000
# Recreate index
bundle exec rake environment elasticsearch:import:model CLASS='Car' FORCE=y
# Amazon Linux AMI release 2013.09
cd /tmp
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.noarch.rpm
sudo rpm -ivh elasticsearch-1.1.1.noarch.rpm
sudo /sbin/chkconfig --add elasticsearch
sudo service elasticsearch start
curl -X GET http://localhost:9200/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment