lib/Elastica/Task.php
public function refresh(array $options = [])
    {
        $endpoint = new \Elasticsearch\Endpoints\Tasks\Get();
        $endpoint->setTaskId($this->_id);
        $endpoint->setParams($options);

        $this->_response = $this->_client->requestEndpoint($endpoint);
        $this->_data = $this->getResponse()->getData();
    }
public function refresh(array $options = [])
    {
        $endpoint = new \Elasticsearch\Endpoints\Tasks\Get();
        $endpoint->setTaskId($this->_id);
        $endpoint->setParams($options);

        $this->_response = $this->_client->requestEndpoint($endpoint);
        $this->_data = $this->getResponse()->getData();
    }
public function refresh ( array $ options = [ ] ) { $ endpoint = new \ Elasticsearch \ Endpoints \ Tasks \ Get ( ) ; $ endpoint -> setTaskId ( $ this -> _id ) ; $ endpoint -> setParams ( $ options ) ; $ this -> _response = $ this -> _client -> requestEndpoint ( $ endpoint ) ; $ this -> _data = $ this -> getResponse ( ) -> getData ( ) ; }
Refresh task status.

@param array $options Options for endpoint
Refresh task status .