public void deleteDocuments(Term term) {
System.out.println("> indexFactory = "+indexFactory);
LuceneIndexReader reader = IndexReaderFactoryUtils.getIndexReader(indexFactory);
System.out.println("> reader = "+reader);
try {
reader.deleteDocuments(term);
} catch(IOException ex) {
throw new LuceneIndexAccessException("Error during deleting a document.",ex);
} finally {
IndexReaderFactoryUtils.releaseIndexReader(indexFactory,reader);
}