Hi, Is it possible to put a limit on the number of search results returned in the ordinary whole database search? Say to 1000 results only?
Hi Clare,
It would be inefficient to restrict at the database level, but it can be artificially limited easily; in your search.php look for the following line;
if ($resultCount) {
...and REPLACE with:
if ($resultCount) { $resultCountMax = 1000; if ($resultCount > $resultCountMax) $resultCount = $resultCountMax;
Cheers, David. -- PriceTapestry.com
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi Clare,
It would be inefficient to restrict at the database level, but it can be artificially limited easily; in your search.php look for the following line;
if ($resultCount)
{
...and REPLACE with:
if ($resultCount)
{
$resultCountMax = 1000;
if ($resultCount > $resultCountMax) $resultCount = $resultCountMax;
Cheers,
David.
--
PriceTapestry.com