protected function getClient(array $config)
    {
        $client = new CloudsearchClient( 
            $config['client_id'], 
            $config['client_secret'], 
            $config['host'],
            'aliyun'
        );

        $search = new CloudsearchSearch($client);
        $search->addIndex($config['app']);

        return $search;
    }
protected function getClient(array $config)
    {
        $client = new CloudsearchClient( 
            $config['client_id'], 
            $config['client_secret'], 
            $config['host'],
            'aliyun'
        );

        $search = new CloudsearchSearch($client);
        $search->addIndex($config['app']);

        return $search;
    }
protected function getClient ( array $ config ) { $ client = new CloudsearchClient ( $ config [ 'client_id' ] , $ config [ 'client_secret' ] , $ config [ 'host' ] , 'aliyun' ) ; $ search = new CloudsearchSearch ( $ client ) ; $ search -> addIndex ( $ config [ 'app' ] ) ; return $ search ; }
Get the opensearch client.

@param string[] $auth

@return CloudsearchClient
Get the opensearch client .