Skip to content

Apache Lucene open-source search software

LUCENE-2631: only change ord if we are changing the reader gen

Yonik Seeleyfdff9344de81
diff --git a/lucene/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/src/java/org/apache/lucene/search/FieldComparator.java
index 6ff4e3a8df0..532765bee73 100644
--- a/lucene/src/java/org/apache/lucene/search/FieldComparator.java
+++ b/lucene/src/java/org/apache/lucene/search/FieldComparator.java
@@ -1130,8 +1130,8 @@ public abstract class FieldComparator {
// exact value match
bottomSameReader = true;
readerGen[bottomSlot] = currentReaderGen;
+ ords[bottomSlot] = bottomOrd;
}
- ords[bottomSlot] = bottomOrd;
}
}
}