Skip to content

Commit

Permalink
change version
Browse files Browse the repository at this point in the history
Signed-off-by: Balasubramanian <[email protected]>
  • Loading branch information
VijayanB committed Feb 11, 2025
1 parent 69f4e6f commit b0affcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected BiFunction<float[], float[], Float> getScoringMethod(float[] processed
protected BiFunction<float[], float[], Float> getScoringMethod(final float[] processedQuery, Version indexCreatedVersion) {
SpaceType.COSINESIMIL.validateVector(processedQuery);
float qVectorSquaredMagnitude = getVectorMagnitudeSquared(processedQuery);
if (indexCreatedVersion.onOrAfter(Version.V_2_19_0)) {
if (indexCreatedVersion.onOrAfter(Version.V_2_17_0)) {
// To be consistent, we will be using same formula used by lucene as mentioned below
// https://github.com/apache/lucene/blob/0494c824e0ac8049b757582f60d085932a890800/lucene/core/src/java/org/apache/lucene/index/VectorSimilarityFunction.java#L73
// for indices that are created on or after 2.19.0
Expand Down

0 comments on commit b0affcc

Please sign in to comment.