can you please paste the output (or put it in a gist) from the Execute Watch API or alternatively the last entry from the watch history regarding that watch?
When I tried to print the {{ctx.payload}} content inside the email body, I saw only {_doc=...}. So, ctx.payload was only having _doc field. This was probably because, I had multiple actions, first index action and then email action. In index action, I was returning output this way:
_docs.add(.....);
return ['_doc' : _docs]
So, when I get to email action, for some reason, I only had this _doc field in ctx.payload. All other fields from the payload are gone. But, I only needed this field in my email. So, I was fine with that.
If I could get explanation to why there's only _doc field in ctx.payload, right after index action, it would be helpful for me.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.