Added elastic search functionality