Recently I needed to dump the contents of a Lucene index. The following class does exactly that, writing the resulting XML document to stdout:
Recently I needed to dump the contents of a Lucene index. The following class does exactly that, writing the resulting XML document to stdout: