lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r802458 - /lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java
Date Sat, 08 Aug 2009 21:33:30 GMT
Author: yonik
Date: Sat Aug  8 21:33:28 2009
New Revision: 802458

URL: http://svn.apache.org/viewvc?rev=802458&view=rev
Log:
SOLR-1259: fix scale function

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java?rev=802458&r1=802457&r2=802458&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/ValueSourceParser.java Sat Aug  8 21:33:28
2009
@@ -120,7 +120,7 @@
         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) {



Mime
View raw message