Add elasticsearch client

Add elasticsearch client to avoid duplicate instances and call from model plugin.