Go to the page and follow instructions.
Find elasticsearch.yml
configuration file:
Ubuntu /etc/elasticsearch/elasticsearch.yml
OS X /usr/local/etc/elasticsearch/elasticsearch.yml
Ensure following options:
cluster.name: elasticsearch_aircasting
node.name: "aircasting"
bootstrap.mlockall: true
network.host: 127.0.0.1
script.inline: on
script.indexed: on
Right now ElasticSearch is used to provide faster results for /api/averages
endpoint used by CrowdMap for displaying average values from sensor.
Run rake elastic:index:measurements
- Create an account (http://localhost:3000/users/sign_up) and sign in (http://localhost:3000/users/sign_in),
- Give yourself admin privileges (replace
<PUT_YOUR_USERNAME_HERE>
):
bundle exec rails c
User.find_by_username('<PUT_YOUR_USERNAME_HERE>').update_attribute(:admin, true)
exit
- Visit locahost:3000/flipper, create
elasticsearch
feature and enable it.