Description
Hi, while upgrading jackrabbit library from 2.14 to 2.16 we noticed couple of issues with the indexing configuration [1]. More specifically one of this issue is related to the condition property.
While using the latest library the value of the condition property is totally ignored, this means that the index-rule is applied to all nodes with the specified nodetype.
We did some investigations and maybe we found the root cause in this commit [2]. More specifically, if you have a look at line 805 of the IndexingConfigurationImpl, the appliesTo method is always returning true: it looks not correct to me.
As a quick workaround we replace that line with:
return condition == null || condition.evaluate(state);
After this small fix the condition property in the index rules is working again as expected. Please let us if this is a bug or a misunderstanding from our side.