Complete addition of elasticsearch functionality