Improve your WordPress search

WordPress’ standard search isn’t all that good. One could say it sucks.
It sucks for several reasons; results come back in reverse date order, which makes sense for a blog but doesn’t exactly use any relevance. There’s no indication in the search results which words matched. The search just takes all the terms and does a basic sql query for any of them, so if you search for ‘i like cheese’ you get posts with the word like and then posts with the word cheese. You have no idea how many results you got.

Enter Relevanssi, a WordPress plugin which I just added and now;
Search results are ranked based on relevance.
Instead of an excerpt showing the first x characters of the post your get a relevant excerpt showing the part of the text that contains the search terms you used, and they’re highlighted in the text.
You see the search score which tells you which words were found in the text and how many time they were found.

A list of Relevanssi features:

  • Search results sorted in the order of relevance, not by date.
  • Fuzzy matching: match partial words, if complete words don’t match.
  • Find documents matching either just one search term (OR query) or require all words to appear (AND query).
  • Search for phrases with quotes, for example “search phrase”.
  • Create custom excerpts that show where the hit was made, with the search terms highlighted.
  • Highlight search terms in the documents when user clicks through search results.
  • Search comments, tags, categories and custom fields.
  • Adjust the weighting for titles, tags and comments.
  • Log queries, show most popular queries and recent queries with no hits.
  • Restrict searches to categories and tags using a hidden variable or plugin settings.
  • Index custom post types and custom taxonomies.
  • Index the contents of shortcodes.
  • Google-style “Did you mean?” suggestions based on successful user searches.
  • Advanced filtering to help hacking the search results the way you want.

The plugin comes in 2 flavors, free and premium. I’m half tempted to buy the premium just to support the free one as it is already quite feature complete. It’s also rather flexible and offers a lot of tweaking if that’s your cup of tea.


Autumn leaves

These things are found in just about every street around here, containers for people to throw leaves in. Must be a new budget cut. Given the fact that we have the most trees of any city in the Netherlands the pavements are swamped with leaves. In previous years these would be cleared by the city. Apparently it’s now DIY time.

The Force

Guess how many times someone says ‘The Force’ during the Star Wars movies.
Now count: Read more…


PETA campaigns against Mario

PETA vs. Mario, round 1, fight!
Apparently Mario is the latest target in PETA’s campaign because he wears a Tanooki suit, which could be interpreted as him being pro-fur.

Does anyone not think of PETA as a farce?


Knock knock morning – Babymetal

Knock knock morning – Babymetal

English translation of BABYMETAL (さくら学院 重音部)「ド・キ・ド・キ☆モーニング」

Sinterklaas arriving in Heerlen

Sinterklaas arriving in Heerlen

Yesterday Sinterklaas arrived in Heerlen, an event we of course had to witness.

WordPress plugins used, 2011

Here’s a list of all the WordPress plugins I’m using at the moment in case anyone is interested.
Read more…

Work in progress... home!
Trying to get all/most of the new code working before I start on the eyecandy.