diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java index 9fc411950d4..256f80c46b4 100644 --- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java +++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java @@ -452,7 +452,7 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn @Override public void binaryField(FieldInfo fieldInfo, byte[] value, int offset, int length) throws IOException { - doc.add(new StoredField(fieldInfo.name, value)); + doc.add(new StoredField(fieldInfo.name, value, offset, length)); } @Override