let search_nn() return None when there is no result