How to query for images linked with documents

We have certain documents types where we have images linked to their corresponding documents. We use SQL queries like below to query from the repository about the various documents of those document types.
select attribute1, attribute2 from documentType.

But we are not able to list out the linked images for those documents with the above queries.
Kindly help me to query images linked with documents.

Hi Vishwanath,

If you construct those queries in an HST component or JAX-RS resource, the Fluent Search API probably helps you out: https://documentation.bloomreach.com/library/concepts/fluent-search/hst-fluent-search.html

hope that helps,

Mathijs