SOLR-1582: fix binary field copyField handling

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@882734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2009-11-20 22:10:57 +00:00
parent f9353351cc
commit 7a9c7583e9
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ Bug Fixes
* SOLR-1572: FastLRUCache correctly implemented the LRU policy only
for the first 2B accesses. (yonik)
* SOLR-1582: Fix BinaryField copy in DocumentBuilder (gsingers)
Other Changes
----------------------

View File

@ -267,7 +267,7 @@ public class DocumentBuilder {
if (isBinaryField) {
if (destinationField.getType() instanceof BinaryField) {
BinaryField binaryField = (BinaryField) destinationField.getType();
binaryField.createField(destinationField, v, boost);
f = binaryField.createField(destinationField, v, boost);
}
} else {
f = destinationField.createField(cf.getLimitedValue(val), boost);