How can I exclude a file or folder from the search indexing?

There are a bunch of test results we have in some repositories that clutter up search results for some terms.

How can we exclude those from the search indexing so they dont come up in results?