Add es package

Looking for some feedback on this approach to talking to ES.
Do you think it would be possible to generate this automatically from the mongodoc.Entity type (with some additional info as to which fields to index) ?