What will be the oak:index structure for the following xpath query
(jcr:content/@metadataSchema = '/conf/global/settings/dam/adminui-extension/metadataschema/temp')
- compatVersion = 2
- async = "async"
- jcr:primaryType = oak:QueryIndexDefinition
- evaluatePathRestrictions = true
- type = "lucene"
- 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
Jackrabbit Oak – Lucene Index
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 gaurav. It is working as expected.