changes for lucene 4.9

These changes make the analyzer compatible with Lucene 4.9, so it can run on ElasticSearch 1.3.X