Term index writer