From ec9a659845973a0dd0ee7c04e0075db818ed118d Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Mon, 9 Nov 2020 12:47:15 -0500 Subject: [PATCH] LUCENE-9322: fix minor cosmetic refactoring error in logging string in IndexWriter's infoStream logging. It was always printing 'vector values' for all merging times instead of the other parts of Lucene index ('doc values', 'stored fields', etc.) --- .../core/src/java/org/apache/lucene/index/SegmentMerger.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java index ed04ae01f47..aa61ea1e2be 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java +++ b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java @@ -224,7 +224,7 @@ final class SegmentMerger { int numMerged = merger.merge(); if (mergeState.infoStream.isEnabled("SM")) { long t1 = System.nanoTime(); - mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge vector values [" + numMerged + " docs]"); + mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge " + formatName + " [" + numMerged + " docs]"); } return numMerged; } @@ -237,8 +237,7 @@ final class SegmentMerger { merger.merge(); if (mergeState.infoStream.isEnabled("SM")) { long t1 = System.nanoTime(); - mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge vector values [" + numMerged + " docs]"); + mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge " + formatName + " [" + numMerged + " docs]"); } } - }