1. A method comprising: executing, by a processor, a search algorithm to control an implantable medical device to test combinations of electrodes from an electrode set in an order that is determined based on proximity of the electrodes of the combinations to a longitudinally central position within the set; and storing, by the processor, information identifying at least one of the tested combinations as part of a neurostimulation therapy program that defines neurostimulation therapy to be delivered to the patient by the implantable medical device.