You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/05/24 23:37:33 UTC

svn commit: r1127305 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/backwards/ solr/ solr/CHANGES.txt solr/src/java/org/apache/solr/search/function/VectorValueSource.java

Author: yonik
Date: Tue May 24 21:37:33 2011
New Revision: 1127305

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

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/   (props changed)
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/CHANGES.txt
    lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/search/function/VectorValueSource.java

Modified: lucene/dev/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1127305&r1=1127304&r2=1127305&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Tue May 24 21:37:33 2011
@@ -119,6 +119,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/branches/branch_3x/solr/src/java/org/apache/solr/search/function/VectorValueSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/search/function/VectorValueSource.java?rev=1127305&r1=1127304&r2=1127305&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/search/function/VectorValueSource.java (original)
+++ lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/search/function/VectorValueSource.java Tue May 24 21:37:33 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) {