Consolidate one and multiple search into a single method