Hello,

I created my own codec and Solr can find it sometimes and not other times.  
When I start fresh (delete the data folder and run Solr), it all works fine.  I 
can add data and query it.  When I stop Solr and start it again, I get:

Caused by: java.lang.IllegalArgumentException: A SPI class of type 
org.apache.lucene.codecs.Codec with name 'MyCodec' does not exist. You need to 
add the corresponding JAR file supporting this SPI to your classpath.The 
current classpath supports the following names: [SimpleText, Appending, 
Lucene40, Lucene3x, Lucene41, Lucene42]

I added the JAR to the path and I'm pretty sure Java sees it, or else it would 
not be using my codec when I start fresh.  (I've looked at the index files and 
verified that it's using my codec.)  I suppose Solr is asking SPI for my codec 
based on the codec class name stored in the index files, but I don't see why 
this would fail when a fresh start works.

Any thoughts?

Thanks,
Scott

Reply via email to