I’ve installed and configured Elasticsearch as an App in NC18. Then I’ve logged in via CLI in order to create the index. But this failed:
~/public_html$ php occ fulltextsearch:index
In StaticNoPingConnectionPool.php line 50:
No alive nodes found in your cluster
fulltextsearch:index [--output [OUTPUT]] [-r|--no-readline] [--] [<options>]
~/public_html$ php occ fulltextsearch:test
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. fail
In StaticNoPingConnectionPool.php line 50:
No alive nodes found in your cluster
fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
An addition, if your error doesn´t disappear.
I had the same problem. I couldn´t use the suggested script because I have Nextcloud and Elastic running on different servers. Therefore I have entered the properties manually on the Nextcloud settings page.
The error disappeard not till I added the port number to the Address of the Servlet (even with the default port 443 for https).