files_fulltextsearch_tesseract icon indicating copy to clipboard operation
files_fulltextsearch_tesseract copied to clipboard

Admin have not selected any IFullTextSearchPlatform in v 24

Open benjaminsabatini opened this issue 2 years ago • 0 comments

This old error again, I guess.

In fact, I've never managed to get tesseract search to function because, despite having it installed, I cannot select it in the "Full text search" options. I also cannot usually view the OCR options below unless I first install Full text search - Files - Tesseract OCR followed by the Full text search apps. Even then it sometimes only appears for a split second. Weird.

Error in nextcloud log Exception while cronIndex: OCA\FullTextSearch\Exceptions\PlatformNotSelectedException - Admin have not selected any IFullTextSearchPlatform

Test.

sudo -u wwwrun php /srv/www/htdocs/nextcloud/occ fulltextsearch:test

Testing your current setup: Creating mocked content provider. ok Testing mocked provider: get indexable documents. (2 items) ok Loading search platform. fail In PlatformService.php line 196: Admin have not selected any IFullTextSearchPlatform

When I could view the OCR options I added several languages...

sudo -u wwwrun php /srv/www/htdocs/nextcloud/occ fulltextsearch:check

Full text search 24.0.0 No Search Platform available - Content Providers: Files 24.0.0 { "files_local": "1", "files_external": "0", "files_group_folders": "0", "files_encrypted": "0", "files_federated": "0", "files_size": "20", "files_pdf": "1", "files_office": "1", "files_image": "0", "files_audio": "0", "files_fulltextsearch_tesseract": { "version": "24.0.0", "enabled": "1", "psm": "4", "lang": "eng, chi_sim, chi_tra, jpn", "pdf": "1", "pdf_limit": "0" } }

Tesseract is installed in /usr/bin/ and the training data is in /usr/share/tessdata/

Edit: in the Admin panel I can add Elasticsearch after installing the app for it, but tesseract is not available.

benjaminsabatini avatar May 08 '22 05:05 benjaminsabatini