Add changes from Brian to allow a TextIndex to update an existing entry