mirror of https://github.com/apache/lucene.git
SOLR-1259: fix scale function
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@802458 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0ec8b1bfe
commit
7b70b51a89
|
@ -120,7 +120,7 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin
|
||||||
ValueSource source = fp.parseValueSource();
|
ValueSource source = fp.parseValueSource();
|
||||||
float min = fp.parseFloat();
|
float min = fp.parseFloat();
|
||||||
float max = 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) {
|
public void init(NamedList args) {
|
||||||
|
|
Loading…
Reference in New Issue