lib/Gateway/Native.php
protected function internalFind(array $parameters, array $languageSettings = array())
    {
        $searchTargets = $this->getSearchTargets($languageSettings);
        if (!empty($searchTargets)) {
            $parameters['shards'] = $searchTargets;
        }

        return $this->search($parameters);
    }
protected function internalFind(array $parameters, array $languageSettings = array())
    {
        $searchTargets = $this->getSearchTargets($languageSettings);
        if (!empty($searchTargets)) {
            $parameters['shards'] = $searchTargets;
        }

        return $this->search($parameters);
    }
protected function internalFind ( array $ parameters , array $ languageSettings = array ( ) ) { $ searchTargets = $ this -> getSearchTargets ( $ languageSettings ) ; if ( ! empty ( $ searchTargets ) ) { $ parameters [ 'shards' ] = $ searchTargets ; } return $ this -> search ( $ parameters ) ; }
Returns search hits for the given array of Solr query parameters.

@param array $parameters
@param array $languageSettings - a map of filters for the returned fields.
Currently supported: <code>array("languages" => array(<language1>,..))</code>.

@return mixed
Returns search hits for the given array of Solr query parameters .