Skip to content

Commit

Permalink
Fix ClientBuilder - pass correct argument for Elasticsearch\Endpoints…
Browse files Browse the repository at this point in the history
…\MsearchTemplate::__construct. (#605)
  • Loading branch information
arconen authored and polyfractal committed Aug 10, 2017
1 parent 9ea2156 commit 5f83b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public function build()

$this->endpoint = function ($class) use ($serializer) {
$fullPath = '\\Elasticsearch\\Endpoints\\' . $class;
if ($class === 'Bulk' || $class === 'Msearch' || $class === 'MPercolate') {
if ($class === 'Bulk' || $class === 'Msearch' || $class === 'MsearchTemplate' || $class === 'MPercolate') {
return new $fullPath($serializer);
} else {
return new $fullPath();
Expand Down

0 comments on commit 5f83b52

Please sign in to comment.