init app for elasticsearch queries