manage search result return with ancestors of communities