Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increased inner search limit to 2500
  • Loading branch information
dtdesign committed May 7, 2015
1 parent 0588a27 commit 4e79840
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -16,6 +16,12 @@
* @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
Expand Down
Expand Up @@ -117,7 +117,7 @@ public function getInnerJoin($objectTypeName, $q, $subjectOnly = false, Prepared
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,
Expand Down

0 comments on commit 4e79840

Please sign in to comment.