benwtrent commented on PR #15090:
URL: https://github.com/apache/lucene/pull/15090#issuecomment-3220284930

   > Currently we do have outer HNSW format wrappers for each variation of flat 
vectors format. But in order to do so we are creating multiple duplicates of 
Lucene99HnswVectorsFormat with the only change being the flat vectors format. 
This means losing out on any future updates Lucene99HnswVectorsFormat and 
manually getting the changes for each variation.
   
   I understand the desire to get new changes out of the box. However, all 
formats are named based. If there was a substantial change to the HNSW format 
that required a new name, you would need a new inherited class that provides a 
NEW name for your format that utilizes a new flat format.
   
   The SPI loader cannot provide any parameters. When constructing the reader, 
its done with the default ctor (e.g. `new Lucene99HnswVectorsFormat()`). 
Without a custom name, you lose your custom flat format.
   
   This API change with how things are now just will not work. Further 
complexity in the named format loader to handle recursively named things just 
seems way too complicated to justify the 20-30 lines of code saved.


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