add wildcards for search dependent on fieldname