Now it is possible to connect Remote Elasticsearch with Searchblox, allowing indexed data to be stored remotely. While searching the data from the user end, the data is fetched remotely, ensuring a greater level of security.
Remote Elasticsearch version needs to be 5.1.2
Settings in Remote Elasticsearch
Go to /<elasticsearch installation path>/config/elastisearch.yml and add the following lines at the bottom:
network.host: <IP address of the server>
You should be able to access elasticsearch using the url http://<ipaddress>:9200
Start the Elasticsearch instance in the server.
Elasticsearch must be started before starting the SearchBlox application.
Start Searchblox and update the license.
After installing SearchBlox, start the application in the client machine and update the server license to the build. Note that the remote cluster feature will work only with a server license.
Configure Searchblox settings in the client machine
Stop SearchBlox and go to /<searchblox installation path>/webapps/searchblox/WEB-INF/elasticsearch.yml and give the details on the remote server and the cluster name as shown below. Disable all the other lines by prefixing "#" before the lines.
#Enter the IP address of the remote Elasticsearch
searchblox.remote.es: <remote ip>
#Enter the Cluster name of the remote Elasticsearch. By default it is searchblox
In the first line, provide the remote IP address, and the second line provide the cluster name as it is listed in the remote Elasticsearch.
After making the necessary changes listed in the above steps, start SearchBlox. While starting SearchBlox the "connected to remote server" message will appear in the SearchBlox console.
Another way to check whether the indexes have been created in remote index is to check Elasticsearch remotely by using an interface tool like Sense. You can also view in your browser http://<remote ip>:9200/_cat/indices.
Indexing and Searching
After indexing the collections, the data will be stored remotely and retrieved remotely when a search is performed. Note that on the dashboard the collections display and appearance of search results will be slower using the remote Elasticsearch cluster, and the speed also depends on network connectivity.
SearchBlox license key is required for accessing this feature