From ba13ebce7aeb6affeeaf721a5812a1f9fc0d085e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20K=C3=B6nig?= Date: Sun, 14 Jul 2024 19:11:33 +0200 Subject: [PATCH] fix handling of index names including `%`, fixes #221 --- src/services/ElasticsearchAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/ElasticsearchAdapter.ts b/src/services/ElasticsearchAdapter.ts index 268680c8..6d9d8e36 100644 --- a/src/services/ElasticsearchAdapter.ts +++ b/src/services/ElasticsearchAdapter.ts @@ -123,7 +123,7 @@ export default class ElasticsearchAdapter { if (indices.length > MAX_INDICES_PER_REQUEST) { return this.callInChunks({ method: 'indexDelete', indices }) } else { - return this.request(indices.join(','), 'DELETE') + return this.request(cleanIndexName(indices.join(',')), 'DELETE') } }