Skip to content

Delay start of search to avoid searching for single letters #31305

Open
@sagamusix

Description

@sagamusix

Doing searches in the web interface can be very cumbersome because the search is started immediately after the first keypress.

Steps to reproduce

  1. Navigate to a folder with many files.
  2. Start typing, Notice how the first typed letter of your search query will already trigger a search
  3. Experience a huge slowdown which may even freeze your browser temporarily.

Expected behaviour

Search should not start immediately but wait for a tiny amount. That way, if I type "foo" into the search bar at normal typing speed, I shouldn't get a search for "f", "fo" and "foo" but just the last search. Not starting the search until about 100-300ms (may be a bit longer if only one letter has been typed so far) since the last keystroke have passed should reduce the load on the browser and server, and avoid sending unnecessary search queries.

Server configuration

ownCloud version: 10.0.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions