From 97339e2cacc308c3689d1cd16dfbc44ebea60788 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 24 Oct 2016 15:43:21 +0200 Subject: [PATCH] LUCENE-7462: Fix LegacySortedSetDocValuesWrapper to reset `upTo` when calling `advanceExact`. --- .../apache/lucene/index/LegacySortedNumericDocValuesWrapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/core/src/java/org/apache/lucene/index/LegacySortedNumericDocValuesWrapper.java b/lucene/core/src/java/org/apache/lucene/index/LegacySortedNumericDocValuesWrapper.java index cfb61e3c2d1..a75274e999e 100644 --- a/lucene/core/src/java/org/apache/lucene/index/LegacySortedNumericDocValuesWrapper.java +++ b/lucene/core/src/java/org/apache/lucene/index/LegacySortedNumericDocValuesWrapper.java @@ -77,6 +77,7 @@ public final class LegacySortedNumericDocValuesWrapper extends SortedNumericDocV public boolean advanceExact(int target) throws IOException { docID = target; values.setDocument(docID); + upto = 0; return values.count() != 0; }