We are getting closer. Very cool.
Just to be sure that you understand what is expected, I'm going to copy and paste what a typical script is so you can copy/paste it your self and see how this can work. Note that this is coming from this post: About the Elasticsearch category
DELETE index
PUT index/_doc/1
{
"foo": "bar"
}
GET index/_search
{
"query": {
"match": {
"foo": "bar"
}
}
}