Export Lucene Query Results to a File