Moved code on Lucene 4.6