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

   Hi,
   the SPI should only be used when READING indexes. When you create a codec 
for IndexWriter the codec version hardcodes its postings formats and other 
subtypes. As you see it is the same for docValuesFormat and other parts.
   
   This allows to read any index, but when you write an index it will use the 
exact codec as specified.
   
   Basically we made the decission to hardcode the correct classes when writing 
indexes, but load the codecs dynamically when open an existing index.


-- 
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