public function getSearchGroupingHighestGroupResultsLimit($defaultIfEmpty = 1)
    {
        $groupingConfiguration = $this->getObjectByPathOrDefault('plugin.tx_solr.search.grouping.', []);
        $highestLimit = $defaultIfEmpty;
        if (!empty($groupingConfiguration['numberOfResultsPerGroup'])) {
            $highestLimit = $groupingConfiguration['numberOfResultsPerGroup'];
        }

        $configuredGroups = $groupingConfiguration['groups.'];
        if (!is_array($configuredGroups)) {
            return $highestLimit;
        }

        foreach ($configuredGroups as $groupName => $groupConfiguration) {
            if (!empty($groupConfiguration['numberOfResultsPerGroup']) && $groupConfiguration['numberOfResultsPerGroup'] > $highestLimit) {
                $highestLimit = $groupConfiguration['numberOfResultsPerGroup'];
            }
        }

        return $highestLimit;
    }
public function getSearchGroupingHighestGroupResultsLimit($defaultIfEmpty = 1)
    {
        $groupingConfiguration = $this->getObjectByPathOrDefault('plugin.tx_solr.search.grouping.', []);
        $highestLimit = $defaultIfEmpty;
        if (!empty($groupingConfiguration['numberOfResultsPerGroup'])) {
            $highestLimit = $groupingConfiguration['numberOfResultsPerGroup'];
        }

        $configuredGroups = $groupingConfiguration['groups.'];
        if (!is_array($configuredGroups)) {
            return $highestLimit;
        }

        foreach ($configuredGroups as $groupName => $groupConfiguration) {
            if (!empty($groupConfiguration['numberOfResultsPerGroup']) && $groupConfiguration['numberOfResultsPerGroup'] > $highestLimit) {
                $highestLimit = $groupConfiguration['numberOfResultsPerGroup'];
            }
        }

        return $highestLimit;
    }
public function getSearchGroupingHighestGroupResultsLimit ( $ defaultIfEmpty = 1 ) { $ groupingConfiguration = $ this -> getObjectByPathOrDefault ( 'plugin.tx_solr.search.grouping.' , [ ] ) ; $ highestLimit = $ defaultIfEmpty ; if ( ! empty ( $ groupingConfiguration [ 'numberOfResultsPerGroup' ] ) ) { $ highestLimit = $ groupingConfiguration [ 'numberOfResultsPerGroup' ] ; } $ configuredGroups = $ groupingConfiguration [ 'groups.' ] ; if ( ! is_array ( $ configuredGroups ) ) { return $ highestLimit ; } foreach ( $ configuredGroups as $ groupName => $ groupConfiguration ) { if ( ! empty ( $ groupConfiguration [ 'numberOfResultsPerGroup' ] ) && $ groupConfiguration [ 'numberOfResultsPerGroup' ] > $ highestLimit ) { $ highestLimit = $ groupConfiguration [ 'numberOfResultsPerGroup' ] ; } } return $ highestLimit ; }
Returns the highestValue of the numberOfResultsPerGroup configuration that is globally configured and
for each group.

plugin.tx_solr.search.grouping.

@param int $defaultIfEmpty
@return int
Returns the highestValue of the numberOfResultsPerGroup configuration that is globally configured and for each group .