This is the Soapbox Crypt. Fresh content can be found at Patrick's Soapbox.

On Searching This Site

For the entire time I've had a b2/wordpress blog the search function that they provided was available. With the move to wordpress (and the Slate design) the Search function got a page to itself. This was good. It had nice features, for example searching for "madness" returned only one result, so it sent you straight to the "permalink" url for that page.

However, in terms of finding things, it wasn't very good. It lacked something in a search. It occurred to me while searching around the net, as I do, that what it was lacking was the google touch. Lets face it, most of the time I want to find something on a website I just go to google and do a search for "query +site:somedomain.co.nz".

For a short period I contemplated using Google's branded search options. The answer dawned on me very shortly after that. Google API was the answer. So I quickly registered again (having done so some time ago and having no idea where my previous key might be) for a new key. I found a GoogleAPI class for PHP that nicely exposed everything I might need for doing searches, culling monkeys, etc.

Thus Search2 was born, powered by Google's trained monkeys.

Comments

 

AM I must say, that is rather cool. I didn't realise you could use the Google API like that. At some point when I change over to TextPattern (from MT) I'll take a closer look. (I've got an API key from when I was using Radio Userland.)

at June 15, 2004 01:06 AM by: Alan

About this entry

You’re currently reading “On Searching This Site,” an entry on Patrick’s Soapbox.

Published: June 15, 2004 01:06 AM.

Filed in My Site .

Comments: Read (1)

self.DoubleShot()

more at ma.gnolia.
Feedsubscribe to the doubleshot feed.

Recently on Flickr