Modified search method to allow for searches even if the payload is NULL