Elasticsearch - attachment using Ingest - with node.js

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

Or use markdown style like:

```
CODE
```

What does a document that you indexed is looking like?
I mean if you do a GET indexname/typename/id?