Support for 1.2.1 version of elasticsearch