elasticsearch\Connection head()

head() public method Performs HEAD HTTP request public mixed head ( $url, $options = [], $body = null )$url string|array URL $options array URL options $body string Request body return mixed Response throws yii\elasticsearch\Exception throws yii\base\InvalidConfigException

elasticsearch\Connection getQueryBuilder()

getQueryBuilder() public method Creates new query builder instance public yii\elasticsearch\QueryBuilder getQueryBuilder ( )

elasticsearch\Connection getNodeInfo()

getNodeInfo() public method public void getNodeInfo ( )

elasticsearch\Connection getIsActive()

getIsActive() public method Returns a value indicating whether the DB connection is established. public boolean getIsActive ( )return boolean Whether the DB connection is established

elasticsearch\Connection getDriverName()

getDriverName() public method Returns the name of the DB driver for the current \yii\elasticsearch\dsn. public string getDriverName ( )return string Name of the DB driver

elasticsearch\Connection getClusterState()

getClusterState() public method public void getClusterState ( )

elasticsearch\Connection get()

get() public method Performs GET HTTP request public mixed get ( $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 EVENT_AFTER_OPEN

EVENT_AFTER_OPEN event of type \yii\elasticsearch\Event An event that is triggered after a DB connection is established

elasticsearch\Connection delete()

delete() public method Performs DELETE HTTP request public mixed delete ( $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 decodeErrorBody()

decodeErrorBody() protected method Try to decode error information if it is valid json, return it if not. protected mixed decodeErrorBody ( $body )$body