generating search scaffold