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?

Search AutoComplete in action

5 Responses to “Search now with AutoComplete”

  1. AlastairC Says:

    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?

  2. John K Says:

    Yes! I’d like to read the step-by-step.

  3. Jim Callender Says:

    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 ;)

  4. Oscar Says:

    I would love a step-by-step tutorial, too.

    Also curious to see your dynamic PHP version.

    Thanks!

  5. Steven Says:

    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!

Leave a Reply

Wait till I come! is the blog of , a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).