thomasmueller commented on code in PR #2098:
URL: https://github.com/apache/jackrabbit-oak/pull/2098#discussion_r1965877635


##########
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/editor/FulltextIndexEditor.java:
##########
@@ -144,8 +145,11 @@ public void leave(NodeState before, NodeState after)
             }
         }
 
-        for (Aggregate.Matcher m : matcherState.affectedMatchers) {
-            m.markRootDirty();
+        for (int i = 0; i < matcherState.matched.size(); i++) {
+            if (matcherState.affectedMatchers.get(i)) {
+                Aggregate.Matcher m = matcherState.matched.get(i);
+                m.markRootDirty();
+            }

Review Comment:
   Something like this:
   ```suggestion
           BitSet bitSet = matcherState.affectedMatchers;
           for (int i = bitSet.nextSetBit(0); i != -1; i = bitSet.nextSetBit(i 
+ 1)) {
               Aggregate.Matcher m = matcherState.matched.get(i);
               m.markRootDirty();
           }
   ```



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

Reply via email to