Searching in generation