Where do I get source code for an Internet search engine?
Alex Chaffee See How do I add a search engine to my web site? (though this covers searching your site, not the whole Internet).
Running a Web Crawler is a pretty big job. Do you have a couple of terabytes of free disk space?