elasticsearch\DebugAction $controller

$controller public property public yii\debug\controllers\DefaultController $controller = null

elasticsearch\Connection __sleep()

__sleep() public method Closes the connection when this component is being serialized. public array __sleep ( )

elasticsearch\Connection selectActiveNode()

selectActiveNode() protected method Select active node randomly protected void selectActiveNode ( )

elasticsearch\Connection put()

put() public method Performs PUT HTTP request public mixed put ( $url, $options = [], $body = null, $raw = false )$url string|array URL $options array URL options $body string Request body $raw boolean If response body contains JSON and should be decoded return mixed Response throws yii\elasticsearch\Exception throws yii\base\InvalidConfigException

elasticsearch\Connection post()

post() public method Performs POST HTTP request public mixed post ( $url, $options = [], $body = null, $raw = false )$url string|array URL $options array URL options $body string Request body $raw boolean If response body contains JSON and should be decoded return mixed Response throws yii\elasticsearch\Exception throws yii\base\InvalidConfigException

elasticsearch\Connection populateNodes()

populateNodes() protected method (available since version 2.0.4) Populates $nodes with the result of a cluster nodes request. protected void populateNodes ( )throws yii\elasticsearch\Exception if no active node(s) found

elasticsearch\Connection open()

open() public method Establishes a DB connection. It does nothing if a DB connection has already been established. public void open ( )throws yii\elasticsearch\Exception if connection fails

elasticsearch\Connection initConnection()

initConnection() protected method Initializes the DB connection. This method is invoked right after the DB connection is established. The default implementation triggers an EVENT_AFTER_OPEN event. protected void initConnection ( )

elasticsearch\Connection init()

init() public method public void init ( )

elasticsearch\Connection httpRequest()

httpRequest() protected method Performs HTTP request protected mixed httpRequest ( $method, $url, $requestBody = null, $raw = false )$method string Method name $url string URL $requestBody string Request body $raw boolean If response body contains JSON and should be decoded return mixed If request failed throws yii\elasticsearch\Exception if request failed throws yii\base\InvalidConfigException