msokolov commented on code in PR #16864:
URL: https://github.com/apache/lucene/pull/16864#discussion_r4671905403


##########
lucene/core/src/java/org/apache/lucene/index/FieldInfo.java:
##########
@@ -597,6 +597,28 @@ public DocValuesSkipIndexType docValuesSkipIndexType() {
     return docValuesSkipIndex;
   }
 
+  /** Returns true if every property of this field, including its attributes, 
equals {@code o}'s. */
+  boolean hasSameState(FieldInfo o) {

Review Comment:
   I though that we forbade most of these things from changing via schema 
consistency checks. I wonder if it's possible to separate `FieldInfo` into an 
unchanging part that never needs to be cloned, and things that are allowed to 
change -- what would they be  Maybe `dvGen` -- I don't really know what `dvGen` 
is but it sounds like something (generation?) that might get updated over time  
 



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