You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Elasticsearch 6.5.1. I try to manually run _forcemerge command on a specified index.
In that case, I go to Any Request tab, put test/_forcemerge?max_num_segments=1 in path field, select POST method, remove whole request body. After I press Request button I see Error 400 with message forcemerge takes arguments in query parameters, not in the request body.
The problem is _forcemerge does not allow to send a request body. Currentl,y empty body of request is replaced with empty JSON object {}), it must be empty!
Please check _forcemerge with curl requests.
Send empty JSON object instead of empty body - error
$ curl -H "Content-Type: application/json" -XPOST "http://192.168.1.27:9200/test/_forcemerge?max_num_segments=1" -d "{}"
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"forcemerge takes arguments in query parameters, not in the request body"}],"type":"illegal_argument_exception","reason":"forcemerge takes arguments in query parameters, not in the request body"},"status":400}
_forcemerge
has changed in 6.4.0 - REST API: Reject forcemerge requests with a body elastic/elasticsearch#30792 (issue: elastic/elasticsearch#29584)I use Elasticsearch
6.5.1
. I try to manually run_forcemerge
command on a specified index.In that case, I go to
Any Request
tab, puttest/_forcemerge?max_num_segments=1
in path field, selectPOST
method, remove whole request body. After I pressRequest
button I see Error 400 with messageforcemerge takes arguments in query parameters, not in the request body
.The problem is
_forcemerge
does not allow to send a request body. Currentl,y empty body of request is replaced with empty JSON object{}
), it must be empty!Please check
_forcemerge
with curl requests.Send empty JSON object instead of empty body - error
Send empty request body - everything is OK
In my opinion to send empty request body should be checkbox
Empty body
next toPretty
. WhenEmpty body
is selectedtextarea
form should be disabled.The text was updated successfully, but these errors were encountered: