require 'net/http' during setup of ElasticSearchLoader