From b79364f0b8333c4746dfeeb57af2ea8715de3d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Krawaczy=C5=84ski?= Date: Fri, 3 Nov 2017 14:57:56 +0100 Subject: [PATCH] Unrecognized parameter: wait_for_merge ``` curl -XPOST 'http://es:9200/index/_forcemerge?flush=true&wait_for_merge=true&ignore_unavailable=true&max_num_segments=1' {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/lindex/_forcemerge] contains unrecognized parameter: [wait_for_merge]"}],"type":"illegal_argument_exception","reason":"request [/index/_forcemerge] contains unrecognized parameter: [wait_for_merge]"},"status":400} ``` --- elasticsearch/client/indices.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index d5e66c0e..d7389e1f 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -817,8 +817,6 @@ class IndicesClient(NamespacedClient): :arg only_expunge_deletes: Specify whether the operation should only expunge deleted documents :arg operation_threading: TODO: ? - :arg wait_for_merge: Specify whether the request should block until the - merge process is finished (default: true) """ return self.transport.perform_request('POST', _make_path(index, '_forcemerge'), params=params)