Added support for excluding attachments from search results