Skip to content

Commit dd63eaa

Browse files
committed
Type exists URI has changed to index/_mapping/type
1 parent cb1956b commit dd63eaa

File tree

1 file changed

+1
-7
lines changed
  • src/Elasticsearch/Endpoints/Indices/Type

1 file changed

+1
-7
lines changed

src/Elasticsearch/Endpoints/Indices/Type/Exists.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ public function getURI()
3232
'type is required for Exists'
3333
);
3434
}
35-
$index = $this->index;
36-
$type = $this->type;
37-
$uri = "/$index/$type";
38-
39-
if (isset($index) === true && isset($type) === true) {
40-
$uri = "/$index/$type";
41-
}
35+
$uri = "/{$this->index}/_mapping/{$this->type}";
4236

4337
return $uri;
4438
}

0 commit comments

Comments
 (0)