From 3b37c324c8307f51b819ad870cd456e849eff428 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Wed, 8 Jan 2025 11:47:10 +0100 Subject: [PATCH] changing this to put was a mistake, it breaks stuff in poms-shared-backend --- .../src/main/java/nl/vpro/elasticsearchclient/IndexHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpro-shared-elasticsearch-client/src/main/java/nl/vpro/elasticsearchclient/IndexHelper.java b/vpro-shared-elasticsearch-client/src/main/java/nl/vpro/elasticsearchclient/IndexHelper.java index b876817f3..29c0ce12c 100644 --- a/vpro-shared-elasticsearch-client/src/main/java/nl/vpro/elasticsearchclient/IndexHelper.java +++ b/vpro-shared-elasticsearch-client/src/main/java/nl/vpro/elasticsearchclient/IndexHelper.java @@ -693,7 +693,7 @@ public ObjectNode index(String id, Object o) { public ObjectNode index(String id, byte[] o) { HttpEntity entity = entity(o); - return putEntity(indexPath(id), entity); + return postEntity(indexPath(id), entity); } public ObjectNode index(String id, Object o, Consumer sourceConsumer) {