$ sudo -u www-data php /home/pi/usbdrive/html/occ fulltextsearch:index


I want to set up the full text search in my NC according to this manual. But at this point I fail:

pi@raspberrypi:~ $ sudo -u www-data php /home/pi/usbdrive/html/occ fulltextsearch:index

In Index.php line 380:

failed platform test.

fulltextsearch:index [–output [OUTPUT]]] [-r|–no-readline] [–] []

What am I doing wrong? How can I set up the full text search function and index my cloud content?

Unfortunately, I do not speak german, but the error message is about Nextcloud not being able to reach the ElasticSearch server.

Do you mean NC is not able to reach an external ES server, or do you mean the ES server installed on my machine isn’t reachable?

If the latter, I 've tried to start the ES server

sudo service elasticsearch start

and got the following status report:

pi@raspberrypi:~ $ sudo service elasticsearch status
● elasticsearch.service - LSB: Starts elasticsearch
Loaded: loaded (/etc/init.d/elasticsearch; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-04-24 13:07:26 BST; 2 days ago
Docs: man:systemd-sysv-generator(8)
Process: 556 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/elasticsearch.service

Apr 24 13:07:26 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch…
Apr 24 13:07:26 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.

What am I making wrong?