MergeTextIndices is more robust than MergeIndices was