nextcloud / nextcloud/server

Don't treat spaces as literal strings and figure out that the search term "Meeting Minutes" should show the folder "Meeting_Minutes"

Open
#40,282 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 27-feedback bug feature: search
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Unified search in Nextcloud is semantic to the point where spaces are treated literally. To me this is a bug, though not sure how developers will feel about this. I run a personal Nextcloud server and tried using Nextcloud for a small company which just voted to switch to Google Drive today, with search being the 1st complaint that employees had.

Our folder names do not contain any spaces, as the Unix way has suggested. Because of this, if any user searches, for example, "Meeting Minutes", the folder "Meeting_Minutes" does not show up. The space is treated literally. This is not the way the average, non-technical user, expects search to behave in 2023. I do have Elasticsearch installed which works pretty well for text within files, but this does not show directories, only files.

I'm going to continue to run my personal instance of Nextcloud as I'm a huge fan, but am very bummed that my company now went proprietary Google Drive. Sure enough, now that we've migrated the data, searching "Meeting Minutes" in GDrive shows the folder "Meeting_Minutes" no problem, which solves one of their biggest issues.

Steps to reproduce
  1. Have directory names that contain underscores instead of spaces
  2. Search for a directory using spaces
  3. Watch as no results show up
Expected behavior

Don't treat spaces as literal strings and figure out that the search term "Meeting Minutes" should show the folder "Meeting_Minutes"

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

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

No source files, tests, or entry points are identified in the issue. Start by locating Nextcloud Server's unified search handling for folder names and reproduce the search for "Meeting Minutes" against a folder named "Meeting_Minutes"; done means the folder appears without treating the space as a literal character.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.