ElasticSearch 6.x is supported by ElasticSuite >= 2.6.0. If you are using an older version, please install ElasticSearch 5.x
ElasticSearch 6.x is supported by ElasticSuite >= 2.6.0. If you are using an older version, please install ElasticSearch 5.x
First, you will need a Java Runtime Environment (JRE) because Elasticsearch is written in the Java programming language.
You can use the native OpenJDK package for the JRE. This JRE is free, well-supported, and automatically managed through most of installation managers (such as APT, YUM, DNF, etc…).
Use one of the following commands, according to your distribution :
sudo apt-get install openjdk-8-jre
su -c “yum install java-1.8.0-openjdk”
sudo dnf install java-1.8.0-openjdk
You can install ElasticSearch via their official repositories.
ElasticSearch is available for YUM/DNF and APT based distros.
If you are on an APT based distro (Ubuntu, Debian, etc…), follow these instructions. If you are using a YUM or DNF based distro (CentOS, Fedora, Redhat, etc…), please refer to the Install via YUM / DNF section.
Download and install the Public Signing Key:
wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add –
Save the repository definition :
sudo apt-get install apt-transport-https
echo “deb https://artifacts.elastic.co/packages/6.x/apt stable main” | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
Run apt-get update and the repository is ready for use. You can then install ElasticSearch with:
sudo apt-get update sudo apt-get install elasticsearch
Download and install the public signing key:
rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add the following in your /etc/yum.repos.d/
directory in a file with a .repo
suffix, for example elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
And your repository is ready for use. You can install it with:
sudo yum install elasticsearch
Or, for newer versions of Fedora and Redhat:
sudo dnf install elasticsearch
Now you can try to start the ElasticSearch instance (depending on your distro, the install script may have not started it) :
sudo service elasticsearch start
You can then test that your ES instance is started by checking the response of the following command :
curl localhost:9200
This should produce something like the following output :
{
“name” : “uhh4jQc”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “jX8k-OY0QeO27praAjmG7A”,
“version” : {
“number” : “6.4.0”,
“build_flavor” : “default”,
“build_type” : “deb”,
“build_hash” : “595516e”,
“build_date” : “2018-08-17T23:18:47.308994Z”,
“build_snapshot” : false,
“lucene_version” : “7.4.0”,
“minimum_wire_compatibility_version” : “5.6.0”,
“minimum_index_compatibility_version” : “5.0.0”
},
“tagline” : “You Know, for Search”
}
You have now to install some plugins that are required by Smile Elastic Suite.
Plugins can be installed with the bin/elasticsearch-plugin
tool of Elastic Search.
You have to go to your Elastic Search installation directory.
Locate your “Home” directory ( Look for Settings -> Path -> Home in the following command output for value ).
curl “localhost:9200/_nodes/settings?pretty=true”
“settings” : {
“pidfile” : “/var/run/elasticsearch/elasticsearch.pid”,
“cluster” : {
“name” : “elasticsearch”
},
“path” : {
“conf” : “/etc/elasticsearch”,
“data” : “/var/lib/elasticsearch”,
“logs” : “/var/log/elasticsearch”,
“home” : “/usr/share/elasticsearch”
},
Goto “Home” directory :
cd /usr/share/elasticsearch
Install plugins :
bin/elasticsearch-plugin install analysis-phonetic
bin/elasticsearch-plugin install analysis-icu
Restart ElasticSearch node in order to apply change :
sudo service elasticsearch restart
Note : If you are using an ElasticSearch cluster with several nodes you have to install the plugins on each nodes.