Switch to using two indexes for terms and documents.