Add ignoreUnavailable param to delete indices (#27215)

This commit is contained in:
Alejandro Pérez Batanero
2018-07-12 09:24:20 -07:00
committed by Ryan Cavanaugh
parent 1a07f27101
commit 532aedc04d
2 changed files with 8 additions and 0 deletions
@@ -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
View File
@@ -1143,6 +1143,7 @@ export interface IndicesDeleteParams extends GenericParams {
timeout?: TimeSpan;
masterTimeout?: TimeSpan;
index: NameList;
ignoreUnavailable?: boolean;
}
export interface IndicesDeleteAliasParams extends GenericParams {