Update matched resource indexes to new resource hierarchy.