tlrx commented on code in PR #16264:
URL: https://github.com/apache/lucene/pull/16264#discussion_r3426304453
##########
lucene/core/src/java/org/apache/lucene/index/MergeState.java:
##########
@@ -91,14 +91,22 @@ public class MergeState {
/** Indicates if the index needs to be sorted * */
public boolean needsIndexSort;
+ /**
+ * The merge that this state is associated with, or {@code null} if this
merge state is not
+ * associated with an {@link IndexWriter} merge (e.g. for addIndexes).
+ */
+ public final MergePolicy.OneMerge oneMerge;
Review Comment:
Thanks, that's a valid point.
I added the `@lucene.internal` annotation in
db5d68462ecc831cf3102e4f3a8691d407026618 since
`org.apache.lucene.codecs.perfield.PerFieldMergeState` sits in a different
package and requires `oneMerge` to be public in order to propagate it when
creating a restricted `MergeState`.
--
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]