Search now with AutoComplete
I just enhanced the site search here with an autocomplete option using the YUI AutoComplete Widget. Just type in anything and you’ll get a list of post titles to choose from. Selecting the title automatically gets you to the entry.
I had this dynamic first, using a PHP script to poll the database, but it seems the load is too much. Anyone interested in a step - by - step how to do it yourself?


September 20th, 2006 at 1:14 pm
Definitely interested in a step-by-step, as you use Wordpress.
I’ve not been happy with the default search, and have been using Technorati temporarily. Adding type-ahead would be a good combination of both.
I assume you cache the results somehow?
September 20th, 2006 at 8:11 pm
Yes! I’d like to read the step-by-step.
September 22nd, 2006 at 9:09 am
without a doubt, yes please.
im not so hot PHP, but if its easy to implement as a step by step templated guide that would be useful ;)
February 11th, 2007 at 6:36 pm
I would love a step-by-step tutorial, too.
Also curious to see your dynamic PHP version.
Thanks!
July 9th, 2007 at 12:00 pm
I’ve just been trying to implement the autocomplete and having looked everywhere I feel I must be being a bit dumb or something. I thought if I directly connected to an XML doc then the second parameter in my Schema would be handled by the YUI and filtered on whereas I’ve had to use a php script to do the filtering for me (was just returning all before that). No one else seems to have mentioned this so have I done it wrong?
Only just discovered your site - excellent breadth of content!