lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1127301 - in /lucene/dev/trunk/solr: CHANGES.txt src/java/org/apache/solr/search/function/VectorValueSource.java
Date Tue, 24 May 2011 21:32:08 GMT
Author: yonik
Date: Tue May 24 21:32:08 2011
New Revision: 1127301

URL: http://svn.apache.org/viewvc?rev=1127301&view=rev
Log:
SOLR-2539: VectorValueSource.floatVal incorrectly used byteVal on sub-sources

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/src/java/org/apache/solr/search/function/VectorValueSource.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1127301&r1=1127300&r2=1127301&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Tue May 24 21:32:08 2011
@@ -341,6 +341,9 @@ Bug Fixes
   set to true and no index segments have been changed, commit cannot trigger reload
   external file). (koji)
 
+* SOLR-2539: VectorValueSource.floatVal incorrectly used byteVal on sub-sources.
+  (Tom Liu via yonik)
+
 
 Other Changes
 ----------------------

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/search/function/VectorValueSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/search/function/VectorValueSource.java?rev=1127301&r1=1127300&r2=1127301&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/search/function/VectorValueSource.java
(original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/search/function/VectorValueSource.java
Tue May 24 21:32:08 2011
@@ -85,8 +85,8 @@ public class VectorValueSource extends M
         }
         @Override
         public void floatVal(int doc, float[] vals) {
-          vals[0] = x.byteVal(doc);
-          vals[1] = y.byteVal(doc);
+          vals[0] = x.floatVal(doc);
+          vals[1] = y.floatVal(doc);
         }
         @Override
         public void doubleVal(int doc, double[] vals) {



Mime
View raw message