Reworked elastic search to move cron and indexer inside the elastic search and outside of the search contract