Drop all usages of the_index in favor of the_repository->index or a custom index structure.
the_index
the_repository->index