How to prevent the 'sub-navigation' fragment from polluting search results?

Hi

We’re running into an issue where a custom fragment is polluting our search results, and we’re looking for the best way to fix it at scale.

We have a custom fragment named ‘sub-navigation’ that is used across roughly 1,000 pages. Right now, if a user searches for any text contained within that sub-navigation, every single one of those 1,000 pages pops up in the search results.

We absolutely still want these pages to be searchable based on their actual page content, but we need the indexer to completely ignore the text inside the ‘sub-navigation’ fragment. Since it’s on so many pages, we need an automated or centralized way to do this rather than a manual page-by-page fix.

What’s the recommended approach here?

Hi Kristof,

Each fragment has a checkbox “Hide from Site Search Results“ in Advanced tab, which (from what I understand), should hide the fragment contents from the portal search. Did you already try that?