add indexing for document (TF IDF only)