From b58e9d77d1ce8404dad9cb739adfcadeb584f732 Mon Sep 17 00:00:00 2001 From: easyice <80152403@qq.com> Date: Tue, 24 Oct 2023 10:41:06 +0800 Subject: [PATCH] fix --- .../java/org/apache/lucene/codecs/PointsWriter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/codecs/PointsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/PointsWriter.java index 614a36ecba0..4cdcd352dbf 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/PointsWriter.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/PointsWriter.java @@ -60,11 +60,11 @@ public abstract class PointsWriter implements Closeable { PointValues values = pointsReader.getValues(fieldInfo.name); if (values != null) { maxPointCount += values.size(); - } - if (mergeState.liveDocs[i] != null) { - totDocCount = BKDWriter.UNKNOWN_DOC_COUNT; - } else if (totDocCount != BKDWriter.UNKNOWN_DOC_COUNT) { - totDocCount += values.getDocCount(); + if (mergeState.liveDocs[i] != null) { + totDocCount = BKDWriter.UNKNOWN_DOC_COUNT; + } else if (totDocCount != BKDWriter.UNKNOWN_DOC_COUNT) { + totDocCount += values.getDocCount(); + } } } }