mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 09:37:52 +08:00
Add ignoreUnavailable param to delete indices (#27215)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
1a07f27101
commit
532aedc04d
@@ -44,6 +44,13 @@ client.indices.delete({
|
||||
}, (error) => {
|
||||
});
|
||||
|
||||
client.indices.delete({
|
||||
index: 'test_index',
|
||||
ignoreUnavailable: true
|
||||
}).then((body) => {
|
||||
}, (error) => {
|
||||
});
|
||||
|
||||
client.deleteByQuery({
|
||||
index: 'test_index',
|
||||
type: 'test_type',
|
||||
|
||||
1
types/elasticsearch/index.d.ts
vendored
1
types/elasticsearch/index.d.ts
vendored
@@ -1143,6 +1143,7 @@ export interface IndicesDeleteParams extends GenericParams {
|
||||
timeout?: TimeSpan;
|
||||
masterTimeout?: TimeSpan;
|
||||
index: NameList;
|
||||
ignoreUnavailable?: boolean;
|
||||
}
|
||||
|
||||
export interface IndicesDeleteAliasParams extends GenericParams {
|
||||
|
||||
Reference in New Issue
Block a user