in search.php formatted results with added hierarchy for parents