Apache Solr open-source search software
SOLR-1582: fix binary field copyField handling
Grant Ingersoll7a9c7583e919
diff --git a/CHANGES.txt b/CHANGES.txtindex 46e37494300..880f34863d3 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -59,6 +59,8 @@ Bug Fixes* SOLR-1572: FastLRUCache correctly implemented the LRU policy onlyfor the first 2B accesses. (yonik)+* SOLR-1582: Fix BinaryField copy in DocumentBuilder (gsingers)+Other Changes----------------------diff --git a/src/java/org/apache/solr/update/DocumentBuilder.java b/src/java/org/apache/solr/update/DocumentBuilder.javaindex 5f3a3591a23..c8a188903a7 100644--- a/src/java/org/apache/solr/update/DocumentBuilder.java+++ b/src/java/org/apache/solr/update/DocumentBuilder.java@@ -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);