Hide from Search | Metafield Rule for Items quantity 1 or less

Hi, I’ve created a metafield product rule that will allow items to be hidden from the search bar.

I’m looking to apply this rule to all products that when they are 1 or less they will not appear in my search bar.

Does anyone know the best way to apply this?

Thanks