20 per page, 200 max search results.What do you have set for Options > Search Options > Maximum Number of Search Results?
Does this restriction apply to searches into archives for threads/posts from years ago with the enhanced search as well or just for pages of "New Posts"?
Also, I've applied the change, but still only can go back 10 pages.
Is there a cache that needs to clear or something reset, for the new setting to go into effect?
$maxResults = 200; // TODO: customizable
src/XF/ControllerPlugin/FindNew.php
and it'd just be a case of changing that value to the desired amount.$maxResults = $this->options->maximumSearchResults;
Thank you very much Chris, I'll get with Russ to make the change.For new posts, it seems we have a hard coded limit of 200:
...and a note that suggests we intended to make it customisable.PHP:$maxResults = 200; // TODO: customizable
I think in XF1 it was customisable based on the maximumSearchResults option so we should either bring that back or make it customisable as it seems we intended.
For now, if you wanted to change it, you'd have to edit the code.
The above code is in the following file:src/XF/ControllerPlugin/FindNew.php
and it'd just be a case of changing that value to the desired amount.
Or, if you wanted to base it on the actual max search results option (which I'm tempted to do for the next release) then you'd change it to:
PHP:$maxResults = $this->options->maximumSearchResults;
I'm going to move this to bugs so we can consider changing it for the next release.
If one of our team makes this edit, will it be overwritten by your new update with the new changes, or will it simply duplicate this change to a T?For new posts, it seems we have a hard coded limit of 200:
...and a note that suggests we intended to make it customisable.PHP:$maxResults = 200; // TODO: customizable
I think in XF1 it was customisable based on the maximumSearchResults option so we should either bring that back or make it customisable as it seems we intended.
For now, if you wanted to change it, you'd have to edit the code.
The above code is in the following file:src/XF/ControllerPlugin/FindNew.php
and it'd just be a case of changing that value to the desired amount.
Or, if you wanted to base it on the actual max search results option (which I'm tempted to do for the next release) then you'd change it to:
PHP:$maxResults = $this->options->maximumSearchResults;
I'm going to move this to bugs so we can consider changing it for the next release.
We use essential cookies to make this site work, and optional cookies to enhance your experience.