nextcloud / nextcloud/fulltextsearch

NC20 Unified Search: produces exception in UnifiedSearchProvider

Open
#592 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php at line 158 and reproduce the reported search in Nextcloud 20.0.1 using Unified Search, then compare it with the normal Fulltextsearch result. Done means the unified search returns the full-text result without the reported undefined-offset exceptions in the Nextcloud log.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.