Google offer a search API for your website. YOu can set it to only search your site or search the web. My question is, when set to only search your site does it only search pages that Google has cached?

In analytics you can also analysis what was search for using the Google API. Has anyone used this feature? If so, how helpful was this?