diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/CustomScoreQueryParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/CustomScoreQueryParser.java index 682ea73b3d3..0402cb5a16d 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/CustomScoreQueryParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/CustomScoreQueryParser.java @@ -117,7 +117,6 @@ public class CustomScoreQueryParser extends AbstractIndexComponent implements XC } @Override public float score(int docId, float subQueryScore) { - vars.put("score", subQueryScore); vars.put("_score", subQueryScore); return ((Number) script.execute(docId, vars)).floatValue(); }