yii\elasticsearch\Query::timeout PHP Method

timeout() public method

Sets the search timeout.
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#_parameters_5
public timeout ( integer $timeout )
$timeout integer A search timeout, bounding the search request to be executed within the specified time value and bail with the hits accumulated up to that point when expired. Defaults to no timeout.
    public function timeout($timeout)
    {
        $this->timeout = $timeout;
        return $this;
    }