hw2 indexDocOnly