Query to find the assets that are missing metadata
Hello,
Can any one help me with the property/query to find all the assets with missing metadata in a folder path?
Thanks,
Rahul
Hello,
Can any one help me with the property/query to find all the assets with missing metadata in a folder path?
Thanks,
Rahul
Hi @rahulmohan ,
Please find the below query for finding the asset which are not having a specified metadata properties.
type=dam:Asset
path=/content/dam/your-project-folder-name
1_property.operation:exists
1_property=jcr:content/metadata/dam:ColorSpace
1_property.value:false
p.limit=-1
Above query will fetch all the asset which does not have property dam:ColorSpace as metadata fields.
As you have mentioned you want to search for 10 metadata fields you may use group mechanism. Below is just a reference you may modify as per your requirement. Below query checks for three properties(if any of the three not present it will fetch in the result, you may twist with or / and as per requirements)
type=dam:Asset
path=/content/dam/your-project-folder-name
group.p.or=true
group.1_property.operation:exists
group.1_property=jcr:content/metadata/dam:ColorSpace
group.1_property.value:false
group.2_property.operation:exists
group.2_property=jcr:content/metadata/dam:Fileformat
group.2_property.value:false
group.3_property.operation:exists
group.3_property=jcr:content/metadata/dc:format
group.3_property.value:false
p.limit=-1
Hope this help!
Thanks,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.