* @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
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,