index the entities.