Viewing posts from September, 2015

SyDjango - An introduction in setting up and using elastic

Installing Elastic Search

Ubuntu

Dependencies

The easiest option is to install OpenJDK as follows:
sudo apt-get install openjdk-6-jre
Elastic search actually recommends using Oracle Java which can be installed as follows
sudo add-apt-repository -y ppa:webupd8team/java 
sudo apt-get update
sudo apt-get -y install oracle-java8-installer

Installation

  1. Obtain the GPG key for the source
    wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
  2. Add the source to ubuntu's sources list
    echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list
  3. Update the package list from the sources list
    sudo apt-get update
  4. Install the Elastic Search package
    sudo apt-get -y install elasticsearch=1.4.4

Configuration

Configuration can go on extensively depending upon what you require. Out of the box is good enough to get you stared with the following change.