Skip to content

Commit

Permalink
Type exists URI has changed to index/_mapping/type
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Sep 15, 2016
1 parent cb1956b commit dd63eaa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Elasticsearch/Endpoints/Indices/Type/Exists.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit dd63eaa

Please sign in to comment.