-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increasing limit of returned results from searches #4213
Conversation
fecdec0
to
8763d11
Compare
For non infinite scroll horizontal, I work whit this:
|
Working around the PR approval workflow, I can get the effect of this with the following addition to my Dockerfile:
|
This is not really a viable solution to the problem imho. There can be 16 different search queries made when searching to search for different item types which at a worst case would mean that 16 x 240 (3,840) results would need to be rendered on the screen. That is just not feasible. Also I doubt anyone wants to horizontal scroll through 240 results. What we really need is a "view more" option for each section that goes to a paginated results screen for only that item type. |
Agreed that the worst case is near 4000 entries. Realistically though, I doubt anywhere around this number would ever be displayed. That said, I'm wholeheartedly on board with a paginated or infinite scroll approach. But given the lack of progress on #1752, I figured a quick workaround would be worthwhile. 240 might be overkill, but ~50-100 might still prove useful especially in the context of tag searching. |
6a50c0a
to
e42ec61
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Looking for heroes to resolve this merge conflict 😌 |
Merge conflict resolved. Adjusted the limit from 24 to 240 to 100 as an attempt to compromise on the blocking disagreement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really I think the search page should be rewritten... firing off so many requests is clearly not working well, so we should make a single request and handle separating them by type client side.
This seems like a fine compromise in the meantime though. 🙂
I'd argue that search should be pushed off to something like https://github.com/meilisearch/meilisearch to help address issues of typo correction, stemming, filtering, etc. But that's a much bigger lift than this change. Additionally, it looks like the PR approval needs a push to move it through. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Changes
In the context of jellyfin/jellyfin#8842, many more than 24 items might be relevant. This PR increases the number of returned results per category to accommodate this (e.g. searching for movies with the tag
christmas
).Issues
While this isn't a complete solution to #1752 (which would likely require infinite horizontal scroll), it's a sufficient short-term measure to relieve the pressure some users might feel.