Skip to content

[Bug]: "Search everywhere" returns no result if search term is short #56859

Open

Description

@Summon528

⚠️ This issue respects the following points: ⚠️

Bug description

When the search term is short (< 3 char), the search everywhere page (/apps/files/search?query=xx) shows no result instead of a good error feedback. This can cause very confusing behavior.

Take this screen recording from the demo site for example,

  1. User searched for "ne" => got result => good
  2. User clicked "search everywhere", probably expect to get more result => instead, saw a "no result" screen
  3. User enter more chars and the result behave normally
Recording.2025-12-04.191929.mp4

Steps to reproduce

  1. Navigate to /apps/files/search?query=xx and observe that it will never return a result no matter what the query is

Expected behavior

Not really sure,
Maybe we should show another error message, but it will still be confusing consider that clicking "search everywhere" erase the result.
Or maybe we should just search anyway

Additional info

I discovered this issue because I'm dealing with CJK characters, I also noticed that an PR #21777 a while ago reduced search limit to 2 chars, is there any reason that this page has the 3-char limit?

As for the env, It's reproducible on the demo site, so the env is whatever that env is.

Activity

  1. added theissue type on Dec 5, 2025
  2. added
    0. Needs triage
    on Dec 5, 2025
  3. Summon528 commented on Dec 5, 2025

    @Summon528
    Author

    A solution could be

    • Hide the "Search everywhere" button if the search term is 1 char
    • Allow searching for 2 char in the "Search everywhere" page
  4. szaimen commented on Dec 5, 2025

    @szaimen
    Contributor

    Hi, which nc version did you test this on?

  5. Summon528 commented on Dec 5, 2025

    @Summon528
    Author

    I'm personally on NC 32.0.2, but the recording is from https://demo1.nextcloud.com/, not sure what version that's on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triage32-feedbackbug

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions