DEFAULT_PORT
DEFAULT_PORT
Default elastic search port.
Elastica connection instance to an elasticasearch node.
This function can be used to handle params for queries, filter
setConnectTimeout(integer $timeout) : $this
Number of seconds after a connection timeout occurs for every request during the connection phase.
Use a small value if you need a fast fail in case of dead, unresponsive or unreachable servers (~5 sec).
Set to zero to switch to the default built-in connection timeout (300 seconds in curl).
integer | $timeout | Connect timeout in seconds |
getTransportObject() : \Elastica\Transport\AbstractTransport
Returns an instance of the transport type.
If invalid transport type
Transport object
create(\Elastica\Connection|array $params = array()) : self
\Elastica\Connection|array | $params | Params to create a connection |