msokolov commented on code in PR #1054: URL: https://github.com/apache/lucene/pull/1054#discussion_r949249778
########## lucene/core/src/java/org/apache/lucene/codecs/KnnVectorsFormat.java: ########## @@ -76,6 +78,15 @@ public static KnnVectorsFormat forName(String name) { /** Returns a {@link KnnVectorsReader} to read the vectors from the index. */ public abstract KnnVectorsReader fieldsReader(SegmentReadState state) throws IOException; + /** + * Returns the current KnnVectorsFormat version number. Indexes written using the format will be + * "stamped" with this version. + */ + public int currentVersion() { Review Comment: I agree this is messy -- are you suggesting the codec would provide a `randomVectorEncoding` method? Or is there some other way of detecting the Codec version? -- 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