ElasticSearch _optimize not working

I am unable to call _optimize api as per documentation of elastic search.

Error "Request Body is required"

What do we need to send in Request Body?

I have tried calling api using Curl and fiddler both.
Please provide sample request for_optimize api?
ElasticSearch version 1.6

I have already created an index with name 'testindex'
C:\curl-7.53.1\src>curl -XPOST localhost:9200/testindex/_optimize

Version 1.6 or version 6?

If the later, the API name is wrong. See https://www.elastic.co/guide/en/elasticsearch/reference/6.1/indices-forcemerge.html

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.