I am trying to install elasticsearch on Ubuntu 12.04 to work with tire and mongodb, I used the following code to do the installation and everything seems to be working fine:
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb
sudo dpkg -i elasticsearch-0.90.2.deb
sudo service elasticsearch start
Elasticsearch appears to have installed to usr/share/elasticsearch but no config/elasticsearch.yml file was created during installation, where can i create/get this file and index the data?
Try these commands for starting and stopping elastic search:
sudo service elasticsearch start
sudo service elasticsearch stop
I think you are looking for this query just run it in terminal(project directory)
rake environment tire:import CLASS=Model_Name FORCE=true
Give your Model Name where you have implemented tire
let me know your feedback
Answers are found in elasticsearch guide
http://www.elasticsearch.org/guide/reference/setup/installation/
After downloading the latest release and extracting it, elasticsearch can be started using:
$ bin/elasticsearch
Under *nix system, the command will start the process in the background. To run it in the foreground, add the -f switch to it:
$ bin/elasticsearch -f
ElasticSearch is built using Java, and requires at least Java 6 in order to run. The version of Java that will be used can be set by setting the JAVA_HOME environment variable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.