added config flag to disable elastic search functionality