initial changes to the class so that it compile with lucene 4.8.0