From: Alexander Ebert Date: Thu, 7 May 2015 10:35:05 +0000 (+0200) Subject: Increased inner search limit to 2500 X-Git-Tag: 2.1.4~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e79840062211046af56d41f4aff0e6d9caf3937;p=GitHub%2FWoltLab%2FWCF.git Increased inner search limit to 2500 --- 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,