Add new search command structure with functor and predicate