From 3c9d355315434ff17a10cd073a0a04fa6a25c202 Mon Sep 17 00:00:00 2001 From: Michael Sokolov Date: Tue, 15 Dec 2020 08:19:26 -0500 Subject: [PATCH] LUCENE-9638: fix simple text vector format fields list terminator --- .../apache/lucene/codecs/simpletext/SimpleTextVectorWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextVectorWriter.java b/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextVectorWriter.java index 36809befdad..db73a22127e 100644 --- a/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextVectorWriter.java +++ b/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextVectorWriter.java @@ -93,11 +93,11 @@ public class SimpleTextVectorWriter extends VectorWriter { writeInt(meta, docId); newline(meta); } - writeField(meta, FIELD_NUMBER, -1); } @Override public void finish() throws IOException { + writeField(meta, FIELD_NUMBER, -1); SimpleTextUtil.writeChecksum(meta, scratch); SimpleTextUtil.writeChecksum(vectorData, scratch); }