Adding elasticsearch document LWRP

I'm not too happy with how it saves an intermediate temp file.  Totally open to suggestions for that.