$_connection
$_connection : \Elastica\Connection
Elastica Guzzle Transport object.
This function can be used to handle params for queries, filter
$_connection : \Elastica\Connection
__construct(\Elastica\Connection $connection = null)
Construct transport.
\Elastica\Connection | $connection | Connection object |
getConnection() : \Elastica\Connection
Connection object
setConnection(\Elastica\Connection $connection) : $this
\Elastica\Connection | $connection | Connection object |
exec(\Elastica\Request $request, 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 | $request | Request object |
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 |
_createPsr7Request(\Elastica\Request $request, \Elastica\Connection $connection) : \GuzzleHttp\Psr7\Request
\Elastica\Request | $request | |
\Elastica\Connection | $connection |
_getGuzzleClient(string $baseUrl, boolean $persistent = true, \Elastica\Request $request) : \GuzzleHttp\Client
Return Guzzle resource.
string | $baseUrl | |
boolean | $persistent | False if not persistent connection |
\Elastica\Request | $request | Elastica Request Object |
_getBaseUrl(\Elastica\Connection $connection) : string
Builds the base url for the guzzle connection.
\Elastica\Connection | $connection |
_getActionPath(\Elastica\Request $request) : string
Builds the action path url for each request.
\Elastica\Request | $request |