diff --git a/src/elasticsearch/endpoints/Bulk.lua b/src/elasticsearch/endpoints/Bulk.lua index 0339216..211ef3b 100644 --- a/src/elasticsearch/endpoints/Bulk.lua +++ b/src/elasticsearch/endpoints/Bulk.lua @@ -42,8 +42,6 @@ function Bulk:getUri() local uri = "/_bulk" if self.index ~= nil then uri = "/" .. self.index .. uri - else - uri = "/_all" .. uri end return uri end diff --git a/src/elasticsearch/endpoints/DeleteByQuery.lua b/src/elasticsearch/endpoints/DeleteByQuery.lua index fc3b8bb..b0323f4 100644 --- a/src/elasticsearch/endpoints/DeleteByQuery.lua +++ b/src/elasticsearch/endpoints/DeleteByQuery.lua @@ -45,7 +45,7 @@ end ------------------------------------------------------------------------------- function DeleteByQuery:getUri() if self.index == nil then - return nil, "index not specified for CountPercolate" + return nil, "index not specified for DeleteByQuery" end local uri = "/" .. self.index uri = uri .. "/_query" diff --git a/src/elasticsearch/endpoints/MGet.lua b/src/elasticsearch/endpoints/MGet.lua index 4f62a61..e7f1598 100644 --- a/src/elasticsearch/endpoints/MGet.lua +++ b/src/elasticsearch/endpoints/MGet.lua @@ -42,8 +42,6 @@ function MGet:getUri() local uri = "/_mget" if self.index ~= nil then uri = "/" .. self.index .. uri - else - uri = "/_all/" .. uri end return uri end