exclude a property we can add index(boolean) false on the property
I have added index(boolean) false on
but the issue is that even below jcr:content node - there are various nodes in a page - a responsive grid inside another responsive grid and when an author drops a component that component always has jcr:createdBy ; jcr:lastModifiedBy properties which have the content author's id/name
So I am planning to use
as mentioned in the doc to write a regex and then set index(boolean) false
Has anyone else faced the same issue and can help in excluding these jcr:createdby and jcr:lastModifiedBy properties in deep nodes ? Am I going in the right direction using isRegexp ?
If yes - what can be the right regex to exclude these properties from certain (n) level of nodes?
Note that the regular expression doesn’t match intermediate nodes, so, jcr:content/.*/.* would not index all properties for all children of jcr:content. OAK-5187 is an open improvement to track supporting arbitrary intermediate child nodes.
I tried adding a node with
and name as jcr:content/*/*/*/jcr*
and it still returned the result with author name (it is not excluding the property)