The Pirate Bay isn't a search engine though. This is much closer to Google than TPB.
TPB indexes content and gives a link to access the content, same as Google. TPB does not actually host any of the copyright infringing content they link to, same as Google.
There is a minor difference in that people upload to TPB and Google spiders out for content but that doesn't seem relevant here.
Is The Pirate Bay liable when people upload copyright-infringing torrents?
Arguably not, but that's not quite how the law sees it.