Also fix formats that are only tested nightly.

This commit is contained in:
Adrien Grand 2024-09-20 15:23:43 +02:00
parent da1f954601
commit 73d71acedd
2 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@ public class Lucene60PointsWriter extends PointsWriter {
FieldInfos readerFieldInfos = mergeState.fieldInfos[i];
FieldInfo readerFieldInfo = readerFieldInfos.fieldInfo(fieldInfo.name);
if (readerFieldInfo != null && readerFieldInfo.getPointDimensionCount() > 0) {
PointValues bkdReader = reader60.readers.get(readerFieldInfo.number);
PointValues bkdReader = reader60.getValues(readerFieldInfo.name);
if (bkdReader != null) {
bkdReaders.add(bkdReader);
docMaps.add(mergeState.docMaps[i]);

View File

@ -249,7 +249,7 @@ public class Lucene86PointsWriter extends PointsWriter {
// we confirmed this up above
assert reader instanceof Lucene86PointsReader;
Lucene86PointsReader reader60 = (Lucene86PointsReader) reader;
Lucene86PointsReader reader86 = (Lucene86PointsReader) reader;
// NOTE: we cannot just use the merged fieldInfo.number (instead of resolving to
// this
@ -259,7 +259,7 @@ public class Lucene86PointsWriter extends PointsWriter {
FieldInfos readerFieldInfos = mergeState.fieldInfos[i];
FieldInfo readerFieldInfo = readerFieldInfos.fieldInfo(fieldInfo.name);
if (readerFieldInfo != null && readerFieldInfo.getPointDimensionCount() > 0) {
PointValues aPointValues = reader60.readers.get(readerFieldInfo.number);
PointValues aPointValues = reader86.getValues(readerFieldInfo.name);
if (aPointValues != null) {
pointValues.add(aPointValues);
docMaps.add(mergeState.docMaps[i]);