diff --git a/src/Elasticsearch/Endpoints/Indices/Type/Exists.php b/src/Elasticsearch/Endpoints/Indices/Type/Exists.php index 9155b742a..b29518929 100644 --- a/src/Elasticsearch/Endpoints/Indices/Type/Exists.php +++ b/src/Elasticsearch/Endpoints/Indices/Type/Exists.php @@ -32,13 +32,7 @@ public function getURI() 'type is required for Exists' ); } - $index = $this->index; - $type = $this->type; - $uri = "/$index/$type"; - - if (isset($index) === true && isset($type) === true) { - $uri = "/$index/$type"; - } + $uri = "/{$this->index}/_mapping/{$this->type}"; return $uri; }