looping through search results to link to posts and profiles, not sure how to link a comment result to its respective post yet