Skip to content

Commit

Permalink
ENGCOM-2135: Use the timeout when querying Elasticsearch #15592
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirZaets authored Jul 2, 2018
2 parents b3ac99e + 34dd540 commit 6824f97
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 6824f97

Please sign in to comment.