Google uses a highly sophisticated set of data and algorithms to determine what to present to who when they search for what from where. The algorithms are obviously secret, but any user paying a bit of attention will notice the results are clearly not generated from the text in the text field alone.