LUCENE-4425: respect offset/length for binary field

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1390261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-26 02:36:34 +00:00
parent b36bfbf733
commit e222601b94
1 changed files with 1 additions and 1 deletions

View File

@ -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