Get elasticsearch controller to work with metagraph