Hi All,
What will be the oak:index structure for the following xpath query
/jcr:root/content/dam/temp//element(*, nt:folder)
[
(jcr:content/@metadataSchema = '/conf/global/settings/dam/adminui-extension/metadataschema/temp')
]
Solved! Go to Solution.
Try this-
- compatVersion = 2
- async = "async"
- jcr:primaryType = oak:QueryIndexDefinition
- evaluatePathRestrictions = true
- type = "lucene"
+ indexRules
+ nt:folder
+ properties
+ metadataSchema
- name = "jcr:content/metadataSchema"
- propertyIndex = true
If you want this index to be picked up only for that path/query then include queryPaths/includedPaths or make it a non-root index
Views
Replies
Total Likes
Try this-
- compatVersion = 2
- async = "async"
- jcr:primaryType = oak:QueryIndexDefinition
- evaluatePathRestrictions = true
- type = "lucene"
+ indexRules
+ nt:folder
+ properties
+ metadataSchema
- name = "jcr:content/metadataSchema"
- propertyIndex = true
If you want this index to be picked up only for that path/query then include queryPaths/includedPaths or make it a non-root index
Views
Replies
Total Likes
Hi,
For any custom queries you can use this tool "Oak Utilities : Index Definition Generator" to check how your index definition will appears.
Hope this helps !
Thanks
Prem
Thanks gaurav. It is working as expected.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies