Your search did not match any code when using a language filter from page 2 where there are visible hits
#188209
-
Select Topic AreaBug BodyProblemSub-searches result in error messages claiming there are no hits when additional filters are added while viewing a later page number because the cursor is retained even though the result set has fewer pages than the page the user is viewing when they add their filter. Steps
NotesThis is actually a hard problem to solve. The worst thing to do is to lie to the user and say there were no matches. IdeallyIdeally you'd imagine the current search results as a "cursor" and see if any of the search results are matched by the new filter and then go to the page that has the matched search results. If there are no matches on the current page, you should imagine the last search result before the current page and the first search result after the current page and take the user to the page that has that first search result from after the current page. The goal of searching and filtering is to say:
In either case, things the user has already seen are not necessarily interesting, but they do want to see what they're looking at with a focus on what they want to see or without what they don't want to see. They don't want to be shown nothing. I certainly don't. And I do filter (both positive and negative) searches like this all the time. Simple caseIn this case, there is only one page of filtered search results: Painful case
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.



💬 Your Product Feedback Has Been Submitted 🎉
Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users.
Here's what you can expect moving forward ⏩