Term-document matrix in Lucene
问题 I am trying to get a term-document matrix from Lucene. It seems that most of the SO questions are for outdated APIs with different classes. I tried combining insight from these two questions to get a term vector from every document: Term Vector Frequency in Lucene 4.0 Is it possible to iterate through documents stored in Lucene Index? Relevant code, but DocEnum is not recognized in the current API. How can I get a term vector or count of all terms for every document? IndexReader reader =