Elasticsearch script doesn't work

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

May be you used GET verb. IIRC it was not working but POST was.

BTW you should use Kibana console.