changed some classes to work with lucene 4.8.0