You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2017/01/16 00:26:04 UTC
Re: Error Loading Custom Codec class with Solr Codec Factory. Class
cast exception
: But when I try to load this codec directly via Solrconfig.xml CodecFactory
: as below.
:
:
: <codecFactory
: class="org.apache.lucene.codecs.encrypted.DummyEncryptedLucene60Codec"/>
...there is a difference between a (lucene layer) Codec. And a (solr
layer) CodecFactory.
Having the codec code in place (with the necessary SPI metadata
files) let's Solr/Lucene *read* indexes written in that codec, but in
order to create new indexes with your codec, you have to write
a concrete implementation of the CodecFactory abstract class and provide
that *Factory* class name in your <codecFactory /> config line. There is
probably no CodecFactory for your DummyEncryptedLucene60Codec defined in
the patch you're trying out.
-Hoss
http://www.lucidworks.com/