Send correct param to elasticsearch class

Change-Id: I310df2c8d1850556a5de3c12848f2c6e3456e355