add path(in search) to hash