From 9b31ee389f6ebe3ce5afe1054aaeaa72c83f7b08 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Tue, 24 May 2011 21:32:08 +0000 Subject: [PATCH] SOLR-2539: VectorValueSource.floatVal incorrectly used byteVal on sub-sources git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1127301 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ .../org/apache/solr/search/function/VectorValueSource.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 763f3f2f9a7..d132b655be2 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -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 ---------------------- diff --git a/solr/src/java/org/apache/solr/search/function/VectorValueSource.java b/solr/src/java/org/apache/solr/search/function/VectorValueSource.java index 4c6aa8a347f..3baaa1a4539 100644 --- a/solr/src/java/org/apache/solr/search/function/VectorValueSource.java +++ b/solr/src/java/org/apache/solr/search/function/VectorValueSource.java @@ -85,8 +85,8 @@ public class VectorValueSource extends MultiValueSource { } @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) {