Hi,
Please have a look at below queries. They worked as expected for me -
Using SQL2:
Select * from [nt:unstructured] where [dam:MIMEtype] like '%jpeg%' and ISDESCENDANTNODE('/content/dam/we-retail/en/activities/biking')
FYI: When I try to achieve the same with the same with - select * from [dam:Asset] where [jcr:content/metadata/dam:MIMEtype] = "image/jpeg", I see the following error:
ERROR: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.
Hence I've suggested the above query as it is working as expected.
Using query builder:
path=/content/dam/we-retail/en/activities/biking
type=dam:Asset
1_property=jcr:content/metadata/dc:format
1_property.value=image/jpeg
FYI: When I try to achieve the same with -
type=dam:Asset
1_property=jcr:content/metadata/dam:MIMEtype
1_property.value=image/png
p.limit=-1
I see the following error:
ERROR: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.
Hence I've suggested the above query as it is working as expected.
Using XPath:
/jcr:root/content/dam/we-retail/en/activities/biking//element(*, dam:Asset)
[
(jcr:content/metadata/@dc:format = 'image/jpeg')
]
Hope this helps!
Regards,
Lavanya Malyala