thomasmueller opened a new pull request, #2949:
URL: https://github.com/apache/jackrabbit-oak/pull/2949

   … mixin rule is lost (#2938)
   
   When an existing node's applicable indexing rule changes at runtime (e.g. 
jcr:mixinTypes added or removed), FulltextIndexEditor did not update the index 
because propertiesChanged was never set — jcr:mixinTypes is not normally listed 
in a rule's property definitions.
   
   Track wasIndexable (rule matched before) alongside isIndexable() (rule 
matches after). In leave(), act on transitions:
   - !wasIndexable && isIndexable(): node gained a rule → addOrUpdate
   - wasIndexable && !isIndexable(): node lost a rule → deleteDocuments
   
   Tests added:
   - PropertyIndexCommonTest: two end-to-end integration tests (all backends)
   - LuceneIndexEditor2Test: two unit tests verifying writer.docs / 
writer.deletedPaths


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