nextcloud / fulltextsearch

🔍 Core of the full-text search framework for Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch
GNU Affero General Public License v3.0
216 stars 51 forks source link

Constantly getting warning message Exception while improving searchresult #806

Open ostasevych opened 12 months ago

ostasevych commented 12 months ago

Hi! I am constantly getting the warning message "Exception while improving searchresult" with the trace log:

[files_fulltextsearch] Warning: Exception while improving searchresult:  - trace: [{"file":"\/var\/www\/html\/nextcloud\/apps\/files_fulltextsearch\/lib\/Service\/SearchService.php","line":272,"function":"getFileFromId","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/apps\/files_fulltextsearch\/lib\/Service\/SearchService.php","line":232,"function":"setDocumentInfo","class":"OCA\\Files_FullTextSearch\\Service\\SearchService","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/apps\/files_fulltextsearch\/lib\/Provider\/FilesProvider.php","line":359,"function":"improveSearchResult","class":"OCA\\Files_FullTextSearch\\Service\\SearchService","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/apps\/fulltextsearch\/lib\/Service\/SearchService.php","line":203,"function":"improveSearchResult","class":"OCA\\Files_FullTextSearch\\Provider\\FilesProvider","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/apps\/fulltextsearch\/lib\/Service\/SearchService.php","line":166,"function":"searchFromProviders","class":"OCA\\FullTextSearch\\Service\\SearchService","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/apps\/fulltextsearch\/lib\/Search\/UnifiedSearchProvider.php","line":139,"function":"search","class":"OCA\\FullTextSearch\\Service\\SearchService","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Search\/SearchComposer.php","line":159,"function":"search","class":"OCA\\FullTextSearch\\Search\\UnifiedSearchProvider","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/core\/Controller\/UnifiedSearchController.php","line":101,"function":"search","class":"OC\\Search\\SearchComposer","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":230,"function":"search","class":"OC\\Core\\Controller\\UnifiedSearchController","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/AppFramework\/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/Route\/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"\/var\/www\/html\/nextcloud\/ocs\/v1.php","line":64,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"\/var\/www\/html\/nextcloud\/ocs\/v2.php","line":23,"args":["\/var\/www\/html\/nextcloud\/ocs\/v1.php"],"function":"require_once"}]

GET /ocs/v2.php/search/providers/fulltextsearch/search?term=test&from=%2Fapps%2Ffiles%2Ffiles%3Fdir%3D%2FDocuments%26fileid%3D674

NC 27.1.4 Ubuntu 22.04 PHP-FPM 8.2 Using ElasticSearch 8.8.2 in docker (https://github.com/R0Wi/elasticsearch-nextcloud-docker/) with the basic authentication enabled and self-signed certificate.

komoricodrutz commented 10 months ago

Hi, I'm having the exact same issue here. The only difference is the final line: GET /ocs/v2.php/search/providers/fulltextsearch/search?term=bru&from=%2Fsettings%2Fapps

NC 27.1.6 in Debian 12 Bookworm LXC Container in proxmox (TKL Nextcloud template - older version but successfully upgraded to bookworm) PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies elasticsearch/stable,now 8.12.0 amd64 [installed] tesseract-ocr/stable,now 5.3.0-2 amd64 [installed]

NC Apps: full text search: 27.0.3 full text search - elastic search platform: 27.0.5 full text search - files: 27.0.1 full text search - files - tesseract ocr: 27.0.0

This server has been around for more than a year, starting with NC 18 or so, has been upgraded through debian, php and NC versions until it reached this stage. However, I only installed and configured the full text search and tesseract features only about 1 week ago, so I am unable to ascertain if these errors would have shown in older versions....

On an other, not yet upgraded to Bookworm version I don't have these errors at all. Debian 11 Bullseye LXC Container in proxmox (TKL Nextcloud template - older version but newer than the other one) PHP 8.1.27 (cli) (built: Dec 21 2023 20:17:59) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.27, Copyright (c) Zend Technologies with Zend OPcache v8.1.27, Copyright (c), by Zend Technologies tesseract-ocr/oldstable,now 4.1.1-2.1 amd64 [installed] Everything else has the same versions as above and the fulll text search and tesseract features have been set up at the same time as the other one. Thanks in advance

br4yd commented 6 months ago

Getting the same issue here on Debian 12 and Nextcloud AIO.