mirror of https://github.com/apache/lucene.git
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:
parent
8417b5590e
commit
7145779e4d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue