Free version of Relevanssi can index the attachment metadata: post titles, descriptions and so on, just like any other post. Relevanssi Premium can also read attachment (PDF, DOC, etc.) contents. That has GDPR effects, as the attachment reading happens on our servers.