Rebuild index after merge