sjs004 opened a new pull request, #16974: URL: https://github.com/apache/lucene/pull/16974
### Description `similarityFunction` is not used in Vector Similarity equals check. Therefore two vectors with same value compare equal even when one uses ` EUCLIDEAN ` and the other uses ` COSINE `. Their hashCode() already includes the `similarityFunction`, which means equals() also violates Java's requirement that equal objects have the same hash code Note: Similarity function is static & defined with index. So this bug should not be impacting any current use case -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
