You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2012/09/25 15:20:27 UTC
svn commit: r1389856 - in /lucene/dev/branches/branch_4x/lucene: CHANGES.txt
core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
Author: jpountz
Date: Tue Sep 25 13:20:27 2012
New Revision: 1389856
URL: http://svn.apache.org/viewvc?rev=1389856&view=rev
Log:
LUCENE-4423: DocumentStoredFieldVisitor.binaryField ignores offset and length (merged from r1389850).
Modified:
lucene/dev/branches/branch_4x/lucene/CHANGES.txt (contents, props changed)
lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
Modified: lucene/dev/branches/branch_4x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/CHANGES.txt?rev=1389856&r1=1389855&r2=1389856&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/lucene/CHANGES.txt Tue Sep 25 13:20:27 2012
@@ -131,6 +131,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
Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java?rev=1389856&r1=1389855&r2=1389856&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java Tue Sep 25 13:20:27 2012
@@ -58,7 +58,7 @@ public class DocumentStoredFieldVisitor
@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