Added withPositions for DocumentTerms