fulltextsearch_elasticsearch icon indicating copy to clipboard operation
fulltextsearch_elasticsearch copied to clipboard

Everything borken after update to FullTextSearch_ElasticSearch v22.0.1

Open redRolf opened this issue 4 years ago • 3 comments

After updating the FullTextSearch app to version 22.0.1 through the web UI, I can no longer access the WebUI.

The occ command-line interface does not work either.

I get the following error:

u# docker exec -u www-data nextcloud php occ app:list
PHP Fatal error:  Trait 'daita\MySmallPhpTools\Traits\TArrayTools' not found in /var/www/html/custom_apps/fulltextsearch/lib/Db/IndexesRequestBuilder.php on line 44

(The same error can be seen in the logs when trying to access the web UI)

While googling this issue, I came across the following issue: https://github.com/nextcloud/fulltextsearch/issues/522

This leads me to believe that there is an issue with the build available on the nextcloud app store.

redRolf avatar Aug 10 '21 19:08 redRolf

I was able to fix the by moving the following folders out of of the dir /var/www/html/custom_app:

  • files_fulltextsearch
  • fulltextsearch
  • fulltextsearch_elasticsearch
  • bookmarks_fulltextsearch

after that, the web UI came back. Then it was possible to install the fulltextsearch app again through the app store.

Then I was able to move the fulltextsearch_elasticsearch and the files_fulltextsearch back into the /var/www/html/custom_app folder. After that everything came back. The bookmarks_fulltextsearch remained brocken, with the following message:

NOTICE: PHP message: PHP Fatal error: Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::generateIndexableDocuments(string $userId): array must be compatible with OCP\FullTextSearch\IFullTextSearchProvider::generateIndexableDocuments(string $userId, string $chunk): array in /var/www/html/custom_apps/bookmarks_fulltextsearch/lib/Provider/BookmarksProvider.php on line 272

redRolf avatar Aug 10 '21 20:08 redRolf

Exactly the same behavior here. (NC 23.0.0 / PHP 7.4.3)

My error-message in /var/log/apache2/error.log:

PHP Fatal error: Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::generateIndexableDocuments(string $userId): array must be compatible w>

I helped myself with disabling the fulltextsearch-bookmarks with sudo -u www-data php occ app:disable bookmarks_fulltextsearch

Now everything works fine.

oberator avatar Jan 19 '22 19:01 oberator

Helpful thread, almost 2 years later. It seems with the latest version of fulltext search, you do NOT need the bookmarks_fulltextsearch app on top of it; it throws an error but the fulltext search on its own still searches your bookmarks.

riverofjanuary avatar Nov 24 '23 15:11 riverofjanuary