Add hierarchy resterictions to search results