Reimplementation of elasticsearch/es2unix commandline tool