Making the Wordpress search functionality better

This morning I have added a new site search to this blog to make life easier for anyone wishing to find some of my older posts now that I have moved across onto the .co.uk version of my domain.

I tried this out with the standard Wordpress search functionality but have never been impressed with the results. So I installed my own, it looks like this: -

(null)

But you can see that as its right there on the sidebar, hey its Sunday morning and my head hurts OK? ;)

The advantages of the new search system are: -

It ranks the search results better
2008-10-19_1156

It offers suggestions as you type (I love that feature!)
2008-10-19_1157

It indexes sub directories of the blog

The last one is the key for me as I have a number of tools off the main blog on their own pages and this well search them too. Cachechecker is an example of this, heres the search page for it

Last job to do is set up a Cron job on the server to re-index the site every day.

So how can this be done? Thought you’d never ask…

I am using Sphider which is a free PHP based spider. Very quick and simple to set up and offers a huge number of features.

Its installed on a subfolder on the site and then I just copied and pasted the search form into the blogs sidebar, bit of css and we are good to go.

Let me know how it works for you!

Incidently loving POPrl at the moment for sharing this link

Share or promote if you liked the post!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Bumpzee
  • Pownce
  • Reddit
  • StumbleUpon

Tags: , , ,

Leave a Reply

.