add elasticsearch adapter

This pr add an elasticsearch adapter for applications that are already using elasticsearch in a multi server environment.
Thanks