Search Engine Installation

1. Download the Packages

This guide will assist you with installing a CleanSpeak Search Engine on your own server (Linux, Mac OS, or Windows) and also works equally well for development environments. These instructions are only for deployments that need CleanSpeak Search Engine to run on a separate server or need CleanSpeak Search Engine to be scaled horizontally.

In most circumstances you will not need to install CleanSpeak Search Engine on a separate server and can skip this section.

Log into the Inversoft website at https://www.inversoft.com/account/ and navigate to the Licenses section and click on Download CleanSpeak. You will need to download one of the CleanSpeak Search Engine package that matches the operating system you will be installing CleanSpeak on.

2. Red Hat

To install on a Red Hat system (including Fedora and CentOS), use the RPM bundle. Execute this command to install the CleanSpeak Search Engine RPM (replace <version> with the correct version number):

$ sudo rpm -i cleanspeak-search-engine-<version>.rpm

3. Debian

To install on a Debian system (including Ubuntu, Mint and Debian base), use the DEB bundle. Execute this command to install the CleanSpeak Search Engine DEB (replace <version> with the correct version number):

$ sudo dpkg -i cleanspeak-search-engine-<version>.deb

4. Mac OS X

To install on Mac OS use the ZIP bundle. Extract the CleanSpeak Search Engine ZIP file anywhere on the file system. Remember where you extract the file. This location will be referred to as CLEANSPEAK_HOME. We suggest extracting this file to a directory such as /usr/local/inversoft.

You can install CleanSpeak in any directory including your home directory. This is a good choice for development machines or when you don’t have or want to use sudo to install CleanSpeak.

Once the zip bundle has been extracted, the directory structure should look similar to this. If you installed somewhere other the default CLEANSPEAK_HOME, your directory structure will be different, this is only for shown as an example.

/usr/local/inversoft/config
/usr/local/inversoft/config/keystore
/usr/local/inversoft/config/cleanspeak.properties
/usr/local/inversoft/cleanspeak-search-engine

5. Windows

To install on Windows 7 or higher use the ZIP bundle. Extract the CleanSpeak Search Engine ZIP file anywhere on the file system. Remember where you extract the file. This location will be referred to as CLEANSPEAK_HOME. We suggest extracting this file to a directory such as C:\inversoft on Windows.

Once the zip bundle has been extracted, the directory structure should look similar to this. If you installed somewhere other the default CLEANSPEAK_HOME, your directory structure will be different, this is only for shown as an example.

C:\inversoft\config
C:\inversoft\config\keystore
C:\inversoft\config\cleanspeak.properties
C:\inversoft\cleanspeak-search-engine\

Next, install the Windows service by changing to the directory you installed CleanSpeak (i.e. C:\inversoft\cleanspeak-search-engine\elasticsearch\bin) and then running the install command. Here are those two steps:

C:\>cd C:\inversoft\cleanspeak-search-engine\elasticsearch\bin
C:\inversoft\cleanspeak-search-engine\elasticsearch\bin>CleanSpeakSearchEngine.exe /install

6. Service Name

As long as your installation method installed CleanSpeak Search Engine as a service, the service name will be as follows:

Service Name

cleanspeak-search-engine

You can use the operating system commands to start, stop and check the status of CleanSpeak using this service name.

7. Configure Other Servers

Next, you need to configure all of the servers that are running CleanSpeak Management Interface to point them at your CleanSpeak Search Engine servers. For each of these servers, you will need to edit the cleanspeak.properties configuration file. More information about this configuration file is located in the Configuration Reference section.

When you have this file open for editing, you need to modify two lines like this:

cleanspeak.properties
cleanspeak-search-engine.embedded=false
cleanspeak-search-engine.servers=<search-engine-server>:8020

The first line tells CleanSpeak Management Interface not to use the embedded search engine. The second line tells CleanSpeak Management Interface where to locate the CleanSpeak Search Engine instances. This is a comma separated list of servers and ports. You can use IP addresses or DNS names here. If you are running multiple CleanSpeak Search Engines, you will need to list each one here. You also need to update the configuration on all of the servers running the CleanSpeak Search Engine so that they can find each other.

8. Start CleanSpeak Search Engine

CleanSpeak Search Engine should now be ready to run. Use the instructions below to start CleanSpeak Search Engine based on the platform you installed it on. Also note that the CLEANSPEAK_HOME directory is the location you installed CleanSpeak Search Engine to.

Linux (RPM or DEB package)
$ sudo service cleanspeak-search-engine start
Mac OS X (ZIP package)
$ <CLEANSPEAK_HOME>/cleanspeak-search-engine/elasticsearch/bin/elasticsearch -d
Windows (ZIP package)
C:\inversoft\cleanspeak-search-engine\elasticsearch\bin>elasticsearch.bat
Windows Service
C:\> net start CleanSpeakSearchEngine