Updated lucene version and modified code accordingly.