I'm trying to implement the search driven navigation to improve site performance and replacing the default Global Navigation using the approach given in the following link: Navigation options for SharePoint Online
But it shows all the sites that are not of the Global Navigation. Is there a way to get only those sites and the respective subsite that are part of the Top Navigation.