Skip to content

Commit

Permalink
Use the timeout when querying Elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
mpchadwick committed May 30, 2018
1 parent 166dd61 commit a65e241
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ public function deleteMapping($index, $entityType)
*/
public function query($query)
{
return $this->client->search($query);
$params = array_merge($query, ['client' => ['timeout' => $this->clientOptions['timeout']]]);
return $this->client->search($params);
}

/**
Expand Down

0 comments on commit a65e241

Please sign in to comment.