: As a foolish dev (not malicious I hope!), I did mess around with something
: like this once; I was writing my own Codec.  I found I had to create a file
: called META-INF/services/org.apache.lucene.codecs.Codec in my solr plugin jar
: that contained the fully-qualified class name of my codec: I guess this
: registers it with the SPI framework so it can be found by name?  I'm not

Yep, that's how SPI works - the important bits are mentioned/linked in the 
PostingsFormat (and other SPI related classes in lucene) javadocs...

https://lucene.apache.org/core/4_10_2/core/org/apache/lucene/codecs/PostingsFormat.html

https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html?is-external=true





-Hoss
http://www.lucidworks.com/

Reply via email to