Searching for emails with a specific attachment type

There currently is no way to do search for emails with a specific type of attachment (for example searching for all emails that have a PDF attachment).