I’ve got the Yahoo! API powering the search on my work’s website. The programming was easy. Using it is easy. The change process is hard.

I’m using PHP to convert the XML into a multidimentional array, and then looping through the results. To limit the results I was appending site:http://mysite to the search string.

The one difficulty I had was with handling big search strings with lots of OR operators. It seemed to drop the end of the query with the site: parameter and our site would then serve results from anywhere. To get around this I prepend it to the query. Also I added an extra check to confirm that the results are actually from our site.

Results are very good. Thanks Yahoo!