msokolov opened a new issue, #13340:
URL: https://github.com/apache/lucene/issues/13340

   ### Description
   
   This test fails with ` java.lang.IllegalArgumentException: can't add a 
parent field to an already existing index without a parent field`. If you index 
any documents in the index, using the parent field or no, then the test passes.
   
   ```  
   public void testParentFieldEmptyIndex() throws IOException {
       try (Directory dir = newMockDirectory()) {
         IndexWriterConfig iwc = new IndexWriterConfig(new 
MockAnalyzer(random()));
         iwc.setParentField("parent");
         try (IndexWriter writer = new IndexWriter(dir, iwc)) {
           writer.commit();
         }
         IndexWriterConfig iwc2 = new IndexWriterConfig(new 
MockAnalyzer(random()));
         iwc2.setParentField("parent");
         try (IndexWriter writer = new IndexWriter(dir, iwc2)) {
           writer.commit();
         }
       }
     }
   ```
   
   
   ### Version and environment details
   
   _No response_


-- 
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.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

Reply via email to