What version of Elasticsearch are you targeting?
Also, please format your code using </>
icon as explained in this guide It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
You can see how it looks in the live preview panel on the right