Defined the function advertise. To be used from SearchResult