- Start an instance of ElasticSearch. (Installation instructions can be found under "Dependencies".)
$ elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
- Run
guard
, which will watch for changes within the/specs
directory and run any updated tests. Hitting "Enter" on the command line will execute all specs.
$ guard
Credit to SitePoint for these easy-to-follow installation directions.
Go to elasticsearch.org/download and download the DEB file. Once the file is local, type:
$ sudo dpkg -i elasticsearch-[version].deb
If you’re on a Mac, Homebrew makes it easy:
$ brew install elasticsearch
Open this url: http://localhost:9200 and you’ll see ElasticSearch respond like so:
{
"status" : 200,
"name" : "Anvil",
"version" : {
"number" : "1.2.1",
"build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
"build_timestamp" : "2014-06-03T15:02:52Z",
"build_snapshot" : false,
"lucene_version" : "4.8"
},
"tagline" : "You Know, for Search"
}