optimized search attachments in the post text