s1monw commented on code in PR #13021: URL: https://github.com/apache/lucene/pull/13021#discussion_r1455526064
########## lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java: ########## @@ -219,22 +228,48 @@ public void testCreateMoreTermsIndex() throws Exception { new IndexWriterConfig(analyzer).setMergePolicy(mp).setUseCompoundFile(false); IndexWriter writer = new IndexWriter(dir, conf); LineFileDocs docs = new LineFileDocs(new Random(0)); + Field docIdDV = null; + Field titleDVField = null; for (int i = 0; i < 50; i++) { - writer.addDocument(docs.nextDoc()); + Document doc = docs.nextDoc(); + if (docIdDV == null) { + docIdDV = new NumericDocValuesField("docid_intDV", 0); + doc.add(docIdDV); + } Review Comment: yeah, so we are doing this in the other tests too bef0r my change. That's why i did it that way... I can clean this all up in a followup -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org