From 4e79840062211046af56d41f4aff0e6d9caf3937 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 7 May 2015 12:35:05 +0200 Subject: [PATCH] Increased inner search limit to 2500 --- .../install/files/lib/system/search/SearchEngine.class.php | 6 ++++++ .../lib/system/search/mysql/MysqlSearchEngine.class.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php index f3a64ef232..5f3a52ac90 100644 --- a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php @@ -16,6 +16,12 @@ use wcf\system\SingletonFactory; * @category Community Framework */ class SearchEngine extends SingletonFactory implements ISearchEngine { + /** + * limit for inner search limits + * @var integer + */ + const INNER_SEARCH_LIMIT = 2500; + /** * list of available object types * @var array diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php index 007e6ccf7c..9aeccc4932 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php @@ -117,7 +117,7 @@ class MysqlSearchEngine extends AbstractSearchEngine { WHERE ".($fulltextCondition !== null ? $fulltextCondition : '')." ".(($searchIndexCondition !== null && $searchIndexCondition->__toString()) ? ($fulltextCondition !== null ? "AND " : '').$searchIndexCondition : '')." ".(!empty($orderBy) && $fulltextCondition === null ? 'ORDER BY '.$orderBy : '')." - LIMIT 1000"; + LIMIT ".($limit == 1000 ? SearchEngine::INNER_SEARCH_LIMIT : $limit); return array( 'fulltextCondition' => $fulltextCondition, -- 2.20.1