jtibshirani commented on a change in pull request #366: URL: https://github.com/apache/lucene/pull/366#discussion_r726227198
########## File path: lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90FieldInfosFormat.java ########## @@ -99,11 +99,12 @@ * <li>PointDimensionCount, PointNumBytes: these are non-zero only if the field is indexed as * points, e.g. using {@link org.apache.lucene.document.LongPoint} * <li>VectorDimension: it is non-zero if the field is indexed as vectors. - * <li>VectorDistFunction: a byte containing distance function used for similarity calculation. + * <li>VectorSimilarityFunction: a byte containing distance function used for similarity + * calculation. * <ul> - * <li>0: no distance function is defined for this field. - * <li>1: EUCLIDEAN_HNSW distance. ({@link VectorSimilarityFunction#EUCLIDEAN}) - * <li>2: DOT_PRODUCT_HNSW score. ({@link VectorSimilarityFunction#DOT_PRODUCT}) + * <li>0: EUCLIDEAN distance. ({@link VectorSimilarityFunction#EUCLIDEAN}) + * <li>1: DOT_PRODUCT similarity. ({@link VectorSimilarityFunction#DOT_PRODUCT}) + * <li>2: COSINE similarity. ({@link VectorSimilarityFunction#COSINE}) Review comment: It's indeed important to prevent this. We actually have a test `BaseKnnVectorsFormatTestCase#testSimilarityFunctionIdentifiers` that checks the ordinals. -- 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