Nextcloud and Full Text Search
-
@Donahue said in Nextcloud and Full Text Search:
what should this be for fedora?
[jbusch@dt-jared ~]$ sudo dnf provides elasticsearch Last metadata expiration check: 2:28:39 ago on Tue 08 Jan 2019 11:12:36 AM CST. elasticsearch-1.7.1-3.fc24.noarch : Open source, flexible, distributed search and analytics engine Repo : fedora Matched from: Provide : elasticsearch = 1.7.1-3.fc24
-
@JaredBusch said in Nextcloud and Full Text Search:
sudo dnf provides elasticsearch
[root@Nextcloud ~]# sudo dnf install elasticsearch Last metadata expiration check: 1:58:59 ago on Tue 08 Jan 2019 09:51:44 AM PST. Error: Problem: conflicting requests - nothing provides mvn(org.apache.lucene:lucene-analyzers-common:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-core:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-highlighter:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-join:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-memory:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-queries:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-queryparser:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-sandbox:4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-spatial:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch - nothing provides mvn(org.apache.lucene:lucene-suggest:4.10.4) needed by elasticsearch-1.7.1-3.fc24.noarch
-
@Donahue That says other required pieces are not available. Not that
elasticsearch
was not available. -
Which does not surprise me since it is from Fedora 24.
-
And that was hard to find.
https://computingforgeeks.com/how-to-install-elasticsearch-6-x-on-fedora-29-fedora-28/Typo in my search text and everything...
-
I find it odd that the elasticsearch app is installed in NC, but the package is not on my machine.
-
I was able to get it installed using that link and also here: https://www.linode.com/docs/databases/elasticsearch/a-guide-to-elasticsearch-plugins/
After that, I can run the index and it picks up new documents. But it will not search them.
-
It seems the search only works on files that are not shared.
-
@Donahue said in Nextcloud and Full Text Search:
I find it odd that the elasticsearch app is installed in NC, but the package is not on my machine.
Not really, nothing "in" NC shows up as a package on your machine. NC is its own thing, things inside of it would not be expected to be system packages.
-
So to update this, searches do not seem to work in shared folders, but they will work in group folders which is an optional app. I also had to setup the backup job in NC to be a cron job and not an ajax job, and add it to the crontab for the apache user.
crontab -u apache -e
I couldn't get the fulltextsearch:live to work properly, so I added fulltextsearch:index to the cron job too.
*/15 * * * * php -f /var/www/html/nextcloud/cron.php */15 * * * * php -f /var/www/html/nextcloud/occ fulltextsearch:index