How does Google handle spam?
Depends on what kind of spam you’re talking about. If you are talking about a Gmail account, then there are certain programs that notice a large number of similar emails that can be labeled as spam. As for Google search, it uses a variety of ranking factors and machine learning to identify spam content
You can read more about this article google search the king