According to my understanding, Lucene uses inverted indexes. Is there any way to extract/print lucene index (lucene 6) in an inverted index format:
term1 <doc1, doc100, ..., doc555>
term1 <doc1, ..., doc100, ..., do89>
term1 <doc3, doc2, doc5, ...>
.
.
.
termn <doc10, doc43, ..., dock>