I am migrating my project’s usage of Lucene from 8.2 to 9.4.
The migration documentation has been very helpful,
but doesn’t help me resolve this exception:

‘Caused by: java.lang.IllegalArgumentException: A SPI class of type 
org.apache.lucene.analysis.TokenizerFactory with name 'whitespace' does not 
exist. You need to add the corresponding JAR file supporting this SPI to your 
classpath. The current classpath supports the following names: [standard]’

My project includes the lucene-analysis-common JAR,
and my JAR includes 
org/apache/lucene/analysis/core/WhitespaceTokenizerFactory.class.

I am not familiar with how Java SPI is configured and built.

I tried creating META-INF/services/org.apache.lucene.analysis.TokenizerFactory
containing: org.apache.lucene.analysis.core.WhitespaceTokenizerFactory

What am I missing?

Any help would be appreciated.

Thanks,
David Shifflett

Reply via email to