Add support for elasticsearch major version