Build index *when* the mapper is generated