Site Search API - Prevent Indexing of Global Module

Is there a good way to prevent the text from being indexed or captured by the Search API description? We have a global module that behaves as a “domain alert” that’ll display a dialog to the user when they are leaving the current domain into another that we are not managing. It should be noted that this module is on every page.
The issue here - when the user performs a search (we are ultizing the Site Search API). It is returning the global module text "You are leaving our website, etc.. etc..) in the description of that return. I attempted the following to prevent it from displaying:
1. class=“hs-search-hidden” on the parent div of this module

resource: Content Search - HubSpot docs

2. Added a “no-index” meta tag directly to the div along with the id=“no-index”.

3. Pushed the text via Javascript instead of straight HTML.
resource: Site Search | Frequently Asked Questions

What I can’t do is add in a robot.txt to perform this action as this is a module on every page.
What I did to bandaid this issue is to find and replace the paragraphs displayed through the JSON return but this is no real solution. I’m just hiding the information and not adjusting the return.
Are there any suggestions on how I can fix this issue?

Hi @JCuadrado ,

Adding the `hs-search-hidden` class to the module is the right approach. How much time did you wait after you implemented that class? The search results aren’t updated instantly.

The docs state the following:
While there is no exact timeline for when changes or new pages should show up in search results, they should show up relatively quickly. If changes to results do not appear within six hours, please reach out to HubSpot Support. If new pages do not show up within six hours, make sure the new page does not meet the criteria below.

Thank you for your response. I added said class on Friday and checked if over the weekend and didn’t see any changes. I once again went over the search right after your reply and it has seem to taken.
Thank you much for reply and forcing me to confirm once more.

Happy that you got it working!