From 8b6362370aa53059ee459c5bb119233b557f706b Mon Sep 17 00:00:00 2001 From: Wouter van Atteveldt Date: Sun, 20 Oct 2024 16:31:55 +0200 Subject: [PATCH] Return errors on uploading --- amcat4/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amcat4/index.py b/amcat4/index.py index b51f5ad..e3cd98c 100644 --- a/amcat4/index.py +++ b/amcat4/index.py @@ -492,7 +492,7 @@ def es_actions(index, documents, op_type): successes, failures = elasticsearch.helpers.bulk( es(), actions, - stats_only=True, + stats_only=False, raise_on_error=raise_on_error, ) except elasticsearch.helpers.BulkIndexError as e: