added version support and upgraded the version of elasticsearch to 0.20.4