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
Plugins: Modify search results total when there are more than 1000 results #310
Comments
It should be possible to return the total from ES, even if it isn't possible to paginate through all the results, as the total exists in the response. That would probably be better? |
Oh yeah, that would be better. Didn't think it was possible. |
There's a logged-out 50 page limit plugin: https://github.com/WordPress/wordpress.org/blob/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-page-limiter.php The plugin directory search limits it to 50 pages, which seems odd: wordpress.org/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php Lines 401 to 421 in 86efbda
Disabling that leads to 51 pages being offered, the 1,020. Let's see if this following change works to properly show the search result counter. |
… results, rather than capping out at 1020. See #310 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@13687 74240141-8908-4e6f-9713-ba540dce6ec7
Looks like the numbers are accurately reflected in the search results from a few tests. I wonder if we should consider a page that exists after 50 pages, something along the lines of "Please consider narrowing your search, results are limited to 1000"? |
Can we close this issue now? |
When searching in the Plugin Directory, the maximum number of returned search results is 1020. Because many search terms return 1020 results, and the number is so specific, it feels odd or that something is not working correctly. If the search maxes out at 1020, I propose we instead display
1,000+
.The text was updated successfully, but these errors were encountered: