s1monw commented on code in PR #12829:
URL: https://github.com/apache/lucene/pull/12829#discussion_r1437134740


##########
lucene/core/src/java/org/apache/lucene/index/FieldInfos.java:
##########
@@ -188,6 +200,26 @@ public static FieldInfos getMergedFieldInfos(IndexReader 
reader) {
     }
   }
 
+  private static String getAndValidateParentField(List<LeafReaderContext> 
leaves) {
+    boolean set = false;
+    String theField = null;
+    for (LeafReaderContext ctx : leaves) {
+      String field = ctx.reader().getFieldInfos().getParentField();
+      if (set && Objects.equals(field, theField) == false) {
+        throw new IllegalStateException(

Review Comment:
   yeah I think so too



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to