I am attempting to upgrade my full text search capabilities away from the now EOL nextant to the shiny new fulltextsearch elasticsearch but I am having some trouble. When running my first index, I am met with this unfortunate error message:
[OCA\FullTextSearch_ElasticSearch\Exceptions\ConfigurationException]
Your ElasticSearchPlatform is not configured properly
fulltextsearch:index [--output [OUTPUT]]
I’m not sure where to look for configuration except the admin console under ....nextcloud/settings/admin/fulltextsearch
Is there a way to rerun the configuration? Did I miss a step? I did find the GitHub wiki to be a bit unclear, so maybe I missed something?
Navigate to admin console -> full text search and select search platform, input server address or IP, and name index. Make sure the name of the index is lowercase only.
Run first index with sudo -u www-data php ./occ fulltextsearch:index
After receiving the error, I rebooted and attempted again, but no luck.
I’ve done that (step 18). I selected elasticsearch as the platform (it was
the only option) and gave the index a name and pointed it to the local server.
Looks like there’s a problem with DNS, I had entered the servlet address by hostname and it was failing as per the error above. After inputting the address by IP, I ran the command again, this time I was met with this error:
I found this rather odd, as I definitely installed ingest-attachment. upon attempting to reinstall it, it returned:
~$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
-> Downloading ingest-attachment from elastic
[=================================================] 100%Â Â
ERROR: plugin directory [/usr/share/elasticsearch/plugins/ingest-attachment] already exists; if you need to update the plugin, uninstall it first using command 'remove ingest-attachment'
I attempted to uninstall it and reinstall it, which succeeded, but after running the index again, it still tells me that the ingest-attachment plugin is missing.
The elastic search service was of course restarted. I even tried to reboot
the server to no avail. The index will not run, it just thinks it is
missing the plugin.
Like the other useriI also am confused about what file you are referring to? /path/to/nextcloud/lib/ doesn’t have a Service directoryand neither does /lib/. There is a file under /path/to/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php but you told the otheruser this was not the correct file.
That being said, my index name also had capital letters, so I changed them to lowercase and now the index is running.
I found this rather odd, as I definitely installed ingest-attachment. upon attempting to reinstall it, it returned:
I had the same issue today. I definitely installed the ingest-attachment as well, but also got the message that it was missing. But what solved it for me was to just run
@daniv i could install it without steps 12, 13, 15 and 16.
step 6: is currently elasticsearch-6.2.4.deb
@cult please where is the data of the index stored? I need to adjust the path because i don’t have so much space on the primary harddisk of the VM. For that purpose i have an extra harddisk which is big enough to hold the index data.