We are using AEM 6.5 and We have a component called search where we will give path to search, So based on given word which we want to search the search will traverse through the given path and show us result of all the pages which comes under given path.
But We want to exclude some pages that comes under given path and don't want the contents of such page to come as search result.