nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

Errors in Nextcloud 20 #125

Open dasousa opened 3 years ago

dasousa commented 3 years ago

Search results are not being returned when using the following configuration:

Nextcloud 20.0.2 Elasticsearch 7.9.1 fulltextsearch 2.0.0 php 7.3.11 apache 2.4.6

I've tried creating ODT documents and markdown documents, but no search results are returned. I can query directly against nextcloudindex in Elasticsearch using curl, and results are returned as expected.

fulltextsearch:test passes all tests. The following error is returned when running fulltextsearch:document:platform files fileId:

In Connection.php line 630: {"_index":"nextcloudindex","_type":"standard","_id":"files:fileId","found":false} fulltextsearch:document:platform [--output [OUTPUT]] [-c|--content] [--] <providerId> <documentId>

The following error is showing in the Nextcloud log:

Error: Undefined offset: 2 at /var/www/html/nextcloud/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php#158 /var/www/html/nextcloud/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php - line 158: OC\Log\ErrorHandler::onError(8, "Undefined offset: 2", "/var/www/ht ... p", 158, { query: OC\ ... l}) /var/www/html/nextcloud/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php - line 137: OCA\FullTextSearch\Search\UnifiedSearchProvider->generateSearchRequest(OC\Search\SearchQuery {}) /var/www/html/nextcloud/lib/private/Search/SearchComposer.php - line 162: OCA\FullTextSearch\Search\UnifiedSearchProvider->search(OC\User\User {}, OC\Search\SearchQuery {}) /var/www/html/nextcloud/core/Controller/UnifiedSearchController.php - line 110: OC\Search\SearchComposer->search(OC\User\User {}, "fulltextsearch", OC\Search\SearchQuery {}) /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169: OC\Core\Controller\UnifiedSearchController->search("fulltextsearch", "markdown", null, null, null, "/nextcloud/ ... 4") /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100: OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "search") /var/www/html/nextcloud/lib/private/AppFramework/App.php - line 152: OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "search") /var/www/html/nextcloud/lib/private/Route/Router.php - line 308: OC\AppFramework\App::main("OC\\Core\\C ... r", "search", OC\AppFramew ... {}, { action: nu ... "}) /var/www/html/nextcloud/ocs/v1.php - line 88: OC\Route\Router->match("/ocsapp/sea ... h") /var/www/html/nextcloud/ocs/v2.php - line 24: require_once("/var/www/ht ... p")