lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Schneider <Scott_Schnei...@symantec.com>
Subject Problem loading my codec sometimes
Date Wed, 25 Sep 2013 00:32:52 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message