It looks like you have mismatched versions of the Lucene jars in your classpath. Particularly, it appears you have lucene-analyzers.common-4.7.X.jar
, but an earlier version of lucene core (perhaps lucene-core-4.4.X.jar
?). You have set the tokenizer to use an earlier algorithm, but you still need to use jars from the same version of Lucene. I believe this is the particular line which directly causes the issue, which gives an example of why that is:
if (matchVersion.onOrAfter(Version.LUCENE_47))
(The Version
class lives in lucene-core)
If you've upgraded lucene-core to version 4.7 already, you may have an old jar in your classpath that you need to remove.