Update: This solution has evolved slightly. More information in How to Google Instant(ise) a Custom Search Engine (CSE) – Revisited
Google have grabbed quite a few headlines with their new Instant search and there has been a rush of developers ‘instantising’ other sites. The one which has got the most attention is Stanford student Feross Aboukhadijeh who after making YouTube Instant has been offered a job with YouTube.
Following this and some other ‘Instant’ sites popping up (usually with an employ me banner) Tam Denholm has come up with instantise.com which at last count has 16 different sites that you can get an instant style search result. A number of these are created by just adding a ‘site:a-single-site.com’ operator which limits the search just to a particular domain.
But what is you want to search across multiple domains like the ALTC2010 custom search engine created by Tony Hirst from the #altc2010 hashtag community (See Deriving a Persistent EdTech Context from the ALTC2010 Twitter Backchannel)?
Fortunately the Google AJAX Search API used in Tam’s example can be directed filtered using a Google Custom Search Engine. Here’s how to do it (BTW :
- Log in to Custom Search and set up your own custom search engine
- Next you need to sign up for an API key on the Google AJAX Search API
- Download this code unpacking the files
- In instant.js you will need to enter you AJAX API key and your Google Custom Search ID (this information is on the Basic’s page of the CSE control panel)
- Upload files to your server and test them
I only modified Tam’s files slightly but one addition I made was to include the Google Scribe bookmarklet script. Google Scribe is a Google Labs project which provides autotext completion. Whilst this is probably not as accurate as the prediction used in Google Instant (Scribe helps build sentences rather than return the most popular search terms) it still potentially speeds up the process of getting search results (here is more info on Google Instant, behind the scenes).
If you want to see how all of this looks:
BTW if anyone wants to give me a job you should also check out my post on Convergence @youtube meets @twitter: In timeline commenting of YouTube videos using Twitter [uTitle] ;-)