Search tool for getting classified search results in a hierarchy