diff --git a/src/elasticsearch/endpoints/SearchTemplate.lua b/src/elasticsearch/endpoints/SearchTemplate.lua index d1101ba..895f528 100644 --- a/src/elasticsearch/endpoints/SearchTemplate.lua +++ b/src/elasticsearch/endpoints/SearchTemplate.lua @@ -40,8 +40,6 @@ end function SearchTemplate:getUri() if self.index ~= nil then return "/" .. self.index .. "/_search/template" - elseif self.index == nil then - return "/_all/_search/template" end return "/_search/template" end