diff --git a/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java b/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java index 3d30898807c..7f2acafa61d 100644 --- a/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java +++ b/lucene/core/src/java/org/apache/lucene/index/MultiDocValues.java @@ -144,6 +144,7 @@ public class MultiDocValues { values.get(docID - leaves.get(subIndex).docBase, result); } else { result.length = 0; + result.offset = 0; result.bytes = BinaryDocValues.MISSING; } } diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanations.java b/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanations.java index 190a2d2feae..e863da59c43 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanations.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestSimpleExplanations.java @@ -22,7 +22,6 @@ import org.apache.lucene.index.Term; /** * TestExplanations subclass focusing on basic query types */ -// nocommit: WTF ant test -Dtestcase=TestSimpleExplanations -Dtests.method=testFQ2 -Dtests.seed=ED13809D5BBA6703 -Dtests.slow=true -Dtests.locale=fr_CH -Dtests.timezone=Brazil/Acre -Dtests.file.encoding=US-ASCII public class TestSimpleExplanations extends TestExplanations { // we focus on queries that don't rewrite to other queries.