Searching attachment content with ingest attachment plugin ES 5.2

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

Or use markdown style like:

```
CODE
```

If you provide a full recreation script it can be easier to help.