If you were dreaming of walking in search of your friend, it means you really desire to find that friend. In your waking hours, you must have thought of that friend. In your sleep, your brain created the dream of walking in search of your friend, to continue the same theme of searching for that friend.
To understand this dream, you can reflect on why it is important to search for this friend. Is it because of nostalgia? You do wish to resume your friendship in an about turn, even when you abandoned that friend and lost touch with them. You may be having unfinished business with that person, which is why you feel such an urgent need to locate this friend.