Properly discriminate searchable and unique attachments