Reinstated the elasticsearch business logic. Issue was the environment setting in the production server was set to development.