lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r799894 - in /lucene/solr/trunk/src/java/org/apache/solr/search/function: DoubleFieldSource.java LongFieldSource.java
Date Sat, 01 Aug 2009 16:05:43 GMT
Author: yonik
Date: Sat Aug  1 16:05:43 2009
New Revision: 799894

URL: http://svn.apache.org/viewvc?rev=799894&view=rev
Log:
fix copy-n-paste typos from Double and Long field sources

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/function/DoubleFieldSource.java
    lucene/solr/trunk/src/java/org/apache/solr/search/function/LongFieldSource.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/function/DoubleFieldSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/function/DoubleFieldSource.java?rev=799894&r1=799893&r2=799894&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/function/DoubleFieldSource.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/function/DoubleFieldSource.java Sat
Aug  1 16:05:43 2009
@@ -72,7 +72,7 @@
       }
 
       public String toString(int doc) {
-        return description() + '=' + floatVal(doc);
+        return description() + '=' + doubleVal(doc);
       }
 
       @Override

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/function/LongFieldSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/function/LongFieldSource.java?rev=799894&r1=799893&r2=799894&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/function/LongFieldSource.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/function/LongFieldSource.java Sat Aug
 1 16:05:43 2009
@@ -69,11 +69,11 @@
       }
 
       public String strVal(int doc) {
-        return Double.toString(arr[doc]);
+        return Long.toString(arr[doc]);
       }
 
       public String toString(int doc) {
-        return description() + '=' + floatVal(doc);
+        return description() + '=' + longVal(doc);
       }
 
 



Mime
View raw message