diff --git a/src/Elasticsearch/Connections/Connection.php b/src/Elasticsearch/Connections/Connection.php index c1d174666..6f2e6488d 100644 --- a/src/Elasticsearch/Connections/Connection.php +++ b/src/Elasticsearch/Connections/Connection.php @@ -294,6 +294,14 @@ private function wrapHandler(callable $handler, LoggerInterface $logger, LoggerI private function getURI($uri, $params) { if (isset($params) === true && !empty($params)) { + array_walk($params, function (&$value, &$key) { + if ($value === true) { + $value = 'true'; + } else if ($value === false) { + $value = 'false'; + } + }); + $uri .= '?' . http_build_query($params); }