Install Elasticsearch
Installing and using Elasticsearch on Ubuntu 14.04.1
Follow the apt-install instructions located here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
Run
sudo update-rc.d elasticsearch defaults 95 10
and
sudo /etc/init.d/elasticsearch start
Next, get Oracle JDK with:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer java -version
Start testing Elasticsearch by running "curl localhost:9200", you should see something like this:
{
"status" : 200,
"name" : "Aleksander Lukin",
"version" : {
"number" : "1.3.2",
"build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f",
"build_timestamp" : "2014-08-13T14:29:30Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}
Enter an example JSON document:
curl -XPUT localhost:9200/lotr/characters/testDoc -d '
> {
> id: 23,
> name: "test"
> }'