LUCENE-9638: fix simple text vector format fields list terminator

This commit is contained in:
Michael Sokolov 2020-12-15 08:19:26 -05:00
parent 4b3e8d7ce8
commit 3c9d355315
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}