Remove invalid parameter id from DeleteDocumentByQueryParams (#14014)

The parameter list of deleteByQuery function does not have `id`.
The relevant documentation is available at
https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-deletebyquery
Even the Elasticsearch documentation available at
https://www.elastic.co/guide/en/elasticsearch/reference/5.x/docs-delete-by-query.html
does not refer to any id parameter for that function.
This commit is contained in:
Ahmad Ferdous Bin Alam
2017-01-17 18:37:56 -05:00
committed by Mohamed Hegazy
parent e584d29c6c
commit 4f35aef094
2 changed files with 12 additions and 1 deletions

View File

@@ -32,6 +32,17 @@ client.indices.delete({
}, function (error) {
});
client.deleteByQuery({
index: 'test_index',
type: 'test_type',
body: {
query: {
}
}
}).then(function (response) {
}, function (error) {
});
client.create({
index: 'index',
type: 'type'

View File

@@ -1,6 +1,6 @@
// Type definitions for elasticsearch 5.0
// Project: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html
// Definitions by: Casper Skydt <https://github.com/CasperSkydt>, Blake Smith <https://github.com/bfsmith>, Dave Dunkin <https://github.com/ddunkin>, Jeffery Grajkowski <https://github.com/pushplay>, Margus Lamp <https://github.com/mlamp>
// Definitions by: Casper Skydt <https://github.com/CasperSkydt>, Blake Smith <https://github.com/bfsmith>, Dave Dunkin <https://github.com/ddunkin>, Jeffery Grajkowski <https://github.com/pushplay>, Margus Lamp <https://github.com/mlamp>, Ahmad Ferdous Bin Alam <https://github.com/ahmadferdous>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module Elasticsearch {