add attachment search criterion