mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
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:
committed by
Mohamed Hegazy
parent
e584d29c6c
commit
4f35aef094
@@ -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'
|
||||
|
||||
2
elasticsearch/index.d.ts
vendored
2
elasticsearch/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user