diff --git a/src/java/org/apache/solr/search/ValueSourceParser.java b/src/java/org/apache/solr/search/ValueSourceParser.java index 05bbdc5b4d7..25790f07d8a 100755 --- a/src/java/org/apache/solr/search/ValueSourceParser.java +++ b/src/java/org/apache/solr/search/ValueSourceParser.java @@ -120,7 +120,7 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin ValueSource source = fp.parseValueSource(); float min = fp.parseFloat(); float max = fp.parseFloat(); - return new ScaleFloatFunction(source,min,max); + return new TopValueSource(new ScaleFloatFunction(source,min,max)); } public void init(NamedList args) {