fulltextsearch icon indicating copy to clipboard operation
fulltextsearch copied to clipboard

NC20 Unified Search: produces exception in UnifiedSearchProvider

Open malehner81 opened this issue 5 years ago • 3 comments

Hy everyone! Having issues with Fulltextsearch on Nextcloud20.0.1

When entering search terms in Nextcloud 20 unified search, no results from fulltextsearch. But 2 Exceptions in Nextcloud log. "Message":"Undefined offset: 1(and 2) at /var/www/nextcloud/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php#158" fts_no_result fts_error

When entering the same search term in the "normal" Fulltextsearch result is shown and no error in Nextcloud log. fts_result_ok

malehner81 avatar Nov 23 '20 19:11 malehner81

I am facing a similar issue. I also see results only in the fulltext search and not in the unified search.

  • occ fulltextsearch:test runs successful
  • I don't see anything in the log

Since I haven't used full text search before NC20 it might be a configuration issue? Is there anything I need to configure for the unified search to use full text search?

d-rk avatar Jan 05 '21 19:01 d-rk

Same problem as OP here. with 20.0.6

trtracer avatar Jan 29 '21 14:01 trtracer

I had the same issue with NC20.0.7 and fulltextsearch 20.0.0.

My workaround is to modify UnifiedSearchProvider.php as follows:

diff UnifiedSearchProvider.php.org UnifiedSearchProvider.php
158c158
<               list($app, $controller, $method) = explode('.', $query->getRoute());    
---
>               $app = 'files';

I found $query->getRoute() returns empty string, and modified the code to directly set a value to $app. This is a dirty hack, but anyway it works for me.

nagai-takayuki avatar Feb 25 '21 09:02 nagai-takayuki