Should we raise an exception here if search is None? Tests can use this for negative testing