$_connection
$_connection : \Elastica\Connection
Elastica Abstract Transport object.
This function can be used to handle params for queries, filter
$_connection : \Elastica\Connection
__construct(\Elastica\Connection $connection = null, \Ivory\HttpAdapter\HttpAdapterInterface $httpAdapter)
Construct transport.
\Elastica\Connection | $connection | Connection object |
\Ivory\HttpAdapter\HttpAdapterInterface | $httpAdapter |
getConnection() : \Elastica\Connection
Connection object
setConnection(\Elastica\Connection $connection) : $this
\Elastica\Connection | $connection | Connection object |
exec(\Elastica\Request $elasticaRequest, array $params) : \Elastica\Response
Makes calls to the elasticsearch server.
All calls that are made to the server are done through this function
\Elastica\Request | $elasticaRequest | |
array | $params | Host, Port, ... |
Response object
create(mixed $transport, \Elastica\Connection $connection, array $params = array()) : \Elastica\Transport\AbstractTransport
Create a transport.
The $transport parameter can be one of the following values:
mixed | $transport | A transport definition |
\Elastica\Connection | $connection | A connection instance |
array | $params | Parameters for the transport class |
_createElasticaResponse(\Ivory\HttpAdapter\Message\Response $httpAdapterResponse) : \Elastica\Response
\Ivory\HttpAdapter\Message\Response | $httpAdapterResponse |
_createHttpAdapterRequest(\Elastica\Request $elasticaRequest, \Elastica\Connection $connection) : \Ivory\HttpAdapter\Message\Request
\Elastica\Request | $elasticaRequest | |
\Elastica\Connection | $connection |
_getUri(\Elastica\Request $request, \Elastica\Connection $connection) : string
\Elastica\Request | $request | |
\Elastica\Connection | $connection |