Search Results are based on keywords and will only show active pages.

If a parent page is inactive, this does not affect the setting of its child pages. Even if the parent page is inactive, child pages will still show up on the search results. Please be aware each page has their own settings and not dependent on their parent's settings.

Once you have set the page to inactive, it will not show on the results page even if it matches the searched keyword.