uschindler commented on issue #12501:
URL: https://github.com/apache/lucene/issues/12501#issuecomment-1674955262

   > So it looked like this SPI extension point loss was an unwitting 
side-effect of a sequence of refactorings.
   
   No, the SPI fromName does not allow you to change the implementation, as 
there can only be one "Lucene50" implementation on classpath. If you want to 
have another codec it must have a new name and therefore for (new) indexes 
passed via IndexWriterConfig using a new codec.
   
   > private final PostingsFormat defaultFormat = 
PostingsFormat.forName("Lucene50");
   
   This does not allow you to overwrite the format, you still need to subclass 
codec, as the name "Lucene50" is part of Lucene core and can't be replaced. So 
it will always load the hardcoded 5.0 codec.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to