Use LucureDirectoryReader. This will lessen the changes necessary in the lucene/solr codebase