LUCENE-4423: DocumentStoredFieldVisitor.binaryField ignores offset and length.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1389850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2012-09-25 13:07:05 +00:00
parent 8417b5590e
commit 7145779e4d
2 changed files with 4 additions and 1 deletions

View File

@ -141,6 +141,9 @@ API Changes
Bug Fixes
* LUCENE-4423: DocumentStoredFieldVisitor.binaryField ignored offset and
length. (Adrien Grand)
* LUCENE-4297: BooleanScorer2 would multiply the coord() factor
twice for conjunctions: for most users this is no problem, but
if you had a customized Similarity that returned something other

View File

@ -59,7 +59,7 @@ public class DocumentStoredFieldVisitor extends StoredFieldVisitor {
@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