nextcloud / nextcloud/cookbook

Pagination does not work in the Nextcloud unified search

Open
#3,321 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Backend bug
Dominant language
HTML
Stars
641
Forks
113
Avg merge
21h 31m
Merged PRs (30d)
26

Description

Description
Since there is no pagination in the unified search engine, once the number of recipes increases, the number of results becomes enormous, causing Nextcloud to stop responding because it has to handle thousands of thumbnail requests at the same time.

Reproduction
When you click on the unified search bar in an environment with many recipes and type a letter that matches many of them, a huge, endless scroll appears.

Expected behavior
Solutions ranked from most to least desirable:

  1. Have it paginate like the other Nextcloud modules.
  2. Display only the first N results, even if it omits the rest.
  3. Completely disable the unified search for Cookbook

Screenshots
Image

Versions
Nextcloud server version: Last stable
Cookbook version: Last stable

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 by tracing Cookbook's unified-search integration and reproduce the endless result list in an environment with many recipes. Compare its behavior with other Nextcloud modules that paginate, then verify that broad searches no longer trigger an unbounded result list or overwhelming thumbnail requests.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.