Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
===================================================================
--- /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php (revision 6589)
+++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php (revision 6590)
@@ -375,6 +375,6 @@
}
- // ES API does not allow fetching past the 10,000th post
- $page = min( $page, floor( 9999 / $posts_per_page ) );
+ // ES API does not allow fetching past the 9,000th post
+ $page = min( $page, floor( 9000 / $posts_per_page ) );
$date_cutoff = strftime( '%Y-%m-%d', strtotime( '-8 years' ) );
@@ -444,5 +444,5 @@
// Total number of results for paging purposes
- $this->found_posts = min( $this->search_result['results']['total'], 9999 ); // The Jetpack search API errors out if we try to request past 10k
+ $this->found_posts = min( $this->search_result['results']['total'], 9000 ); // The Jetpack search API errors out if we try to request past 9k
// Don't select anything, posts are inflated by Jetpack_SearchResult_Posts_Iterator