test the referer in the approximate search