Upgrade Codec 99 to 101 / 102

Michael Wechner <[email protected]>
Newsgroups gmane.comp.jakarta.lucene.devel
Message-ID <[email protected]>
Hi

With Lucene 9.12.0 I set my own custom max vector dimension using

Codec codecInt8 = new Lucene99Codec() { @Override public 
KnnVectorsFormat getKnnVectorsFormatForField(String field) { var 
delegate = new Lucene99HnswScalarQuantizedVectorsFormat(); 
log.info("Vector Value Type: int8, Maximum Vector Dimension: " + 
maxDimensions); return new DelegatingKnnVectorsFormat(delegate, 
maxDimensions); } }; and

Codec codecFloat32 =new Lucene99Codec() {
     @Override public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
         var delegate =new Lucene99HnswVectorsFormat();
         log.info("Vector Value Type: float32, Maximum Vector Dimension: " +maxDimensions);
         return new DelegatingKnnVectorsFormat(delegate,maxDimensions);
     }
};

I am a little confused re which Codec / Vector Format classes I should use when upgrading to Lucene version 10.2.2

Any hints would be much appreciated!

Thanks

Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.