Add ignoreUnavailable param to delete indices (#27215)

This commit is contained in:
Alejandro Pérez Batanero
2018-07-12 18:24:20 +02:00
committed by Ryan Cavanaugh
parent 1a07f27101
commit 532aedc04d
2 changed files with 8 additions and 0 deletions

View File

@@ -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',

View File

@@ -1143,6 +1143,7 @@ export interface IndicesDeleteParams extends GenericParams {
timeout?: TimeSpan;
masterTimeout?: TimeSpan;
index: NameList;
ignoreUnavailable?: boolean;
}
export interface IndicesDeleteAliasParams extends GenericParams {