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
This commit is contained in:
Yonik Seeley 2011-05-24 21:32:08 +00:00
parent a636ef94d1
commit 9b31ee389f
2 changed files with 5 additions and 2 deletions

View File

@ -341,6 +341,9 @@ Bug Fixes
set to true and no index segments have been changed, commit cannot trigger reload set to true and no index segments have been changed, commit cannot trigger reload
external file). (koji) external file). (koji)
* SOLR-2539: VectorValueSource.floatVal incorrectly used byteVal on sub-sources.
(Tom Liu via yonik)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -85,8 +85,8 @@ public class VectorValueSource extends MultiValueSource {
} }
@Override @Override
public void floatVal(int doc, float[] vals) { public void floatVal(int doc, float[] vals) {
vals[0] = x.byteVal(doc); vals[0] = x.floatVal(doc);
vals[1] = y.byteVal(doc); vals[1] = y.floatVal(doc);
} }
@Override @Override
public void doubleVal(int doc, double[] vals) { public void doubleVal(int doc, double[] vals) {