set ES doctype based on tenant id