diff --git a/x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/L2ScoreNormalizer.java b/x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/L2ScoreNormalizer.java index 0b474868ccb4f..c05cdfe7cf8f9 100644 --- a/x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/L2ScoreNormalizer.java +++ b/x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/L2ScoreNormalizer.java @@ -13,8 +13,8 @@ /** * A score normalizer that applies L2 normalization to a set of scores. *
- * This normalizer scales the scores so that the L2 norm of the score vector is 1, - * if possible. If all scores are zero or NaN, normalization is skipped and the original scores are returned. + * Each score is divided by the L2 norm of the scores if the norm is greater than a small EPSILON. + * If all scores are zero or NaN, normalization is skipped and the original scores are returned. *
*/ public class L2ScoreNormalizer extends ScoreNormalizer {