add index to domain in DocDomainMapping