I built a php intranet based search engine, its kinda cool and easy to code, i jut took advantage of php's string parsing powers, i set up a text file, indexed there the sites, the paths, guide words and descriptions and i just used php to extract them based from the user's search . . .
you could create a more powerful search engine by experimenting on the file and directory manipulation ability of php