Generalizing how search criteria is updated