To force elasticsearch to listen only on localhost edit the file /etc/elasticsearch/elasticsearch.yml and set network.host to 127.0.0.1:

$ sudo nano /etc/elasticsearch/elasticsearch.yml

Inside the ‘Network’ section, delete the ‘#’ to uncomment the lines that starts with ‘cluster.name’, ‘node.name’ and ‘network.host’, and assign a custom name for each. For ‘network.host’, change the ip from 192.168.0.1 to 127.0.0.1 as shown below:

The first variables to customize on any Elasticsearch server are node.name and cluster.name in elasticsearch.yml. As their names suggest, node.name specifies the name of the server (node) and the cluster to which the latter is associated.

If you don’t customize these variable, a node.name will be assigned automatically in respect to the Droplet hostname. The cluster.name will be automatically set to the name of the default cluster.

The cluster.name value is used by the auto-discovery feature of Elasticsearch to automatically discover and associate Elasticsearch nodes to a cluster. Thus, if you don’t change the default value, you might have unwanted nodes, found on the same network, in your cluster.

These the minimum settings you can start with using Elasticsearch. However, it’s recommended to continue reading the configuration part for more thorough understanding and fine-tuning of Elasticsearch.

Hello, It’s been a while since I first wrote this but the install of Full Text Search doesn’t appear to have changed much. I’m not sure what you mean by “no commands defined” as you referenced the command ending with “occ fulltextsearch:index” to initiate/run the first index. I can only reference the official github repo https://github.com/nextcloud/fulltextsearch/issues but I’m sure you’ve been there too. Good luck!