All in the <head> – Ponderings and code by Drew McLellan –

Search me

The search facility on this site is absolutely pants. Complete rubbish. About as useful as a one legged man in an arse kicking contest. Try searching on topics I frequently discuss:

  • OS X – 0 articles
  • XML – 0 articles
  • PHP – 0 articles
  • crap – 5 articles!

So either the search isn’t working properly, or my site is full of crap. Hmm. It could be that it ignores words of less than four characters, but that’s next to useless for the stuff I discuss here, so I’m going to get the drains up on the Textpattern search tool and find out what’s going on. I should really add a submit button too. I’ve no idea why it doesn’t have one.

If all that fails, I guess I’ll just rewire the form to point to Google. Check out how it does with OS X, XML, and crap (see, there’s more crap on my site than you thought!).

Update: I’ve added a submit button. Looks like Textpattern uses MySQL full-text searching, which by default is limited to words 4 characters or more. Drat it. My posts are categorised internally, but rather generally. Maybe I need to recategorise them more specifically and enable viewing by category rather than relying on search.