elastic search api set up
added functionality to search and indexer