Cleaned up and commented for full-text index trimming.