If you are thinking about decentralized search, it already exists in some P2P networks (ex: Kademlia)
However, it is nowhere as effective as commercial services. So much that the most effective way of finding pirate stuff is often to Google them despite all the copyright takedowns.