Usage
Let’s identity a search request with the ID my-request
:
$ curl -H "Content-Type: application/json" -H "X-Opaque-Id: my-request" 'http://localhost:9200/siren/_search'
Then to cancel it, issue a request as follows:
$ curl -XPOST -H "Content-Type: application/json" 'localhost:9200/_siren/job/my-request/_cancel'
If successful, the response will acknowledge the request and give a listing of the cancelled tasks:
{ "acknowledged" : true, "tasks" : [ { "node" : "5ILUA44uSee-VxsBsNbsNA", "id" : 947, "type" : "transport", "action" : "indices:siren/plan", "description" : "federate query", "start_time_in_millis" : 1524815599457, "running_time_in_nanos" : 199131478, "cancellable" : true, "headers" : { "X-Opaque-Id" : "my-request" } } ] }