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