Moved elasticsearch work to gearman.