elastistic search as parameter