put elastic mapping after resources are registered