From dd63eaa0d3abdf1ba6ac129bb358828e04a56a01 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Thu, 15 Sep 2016 14:56:05 -0400 Subject: [PATCH] Type exists URI has changed to index/_mapping/type --- src/Elasticsearch/Endpoints/Indices/Type/Exists.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; }