Close

Fast Search

| Post a comment | Share this

One of the things my web host, Dataflame, likes to do every so often is to lock down some of the files in this blog, claiming they're using too many resources. Dataflame's staff never bother to tell my they've done this so I never know exactly how long my site's been crippled for. But I always find out.

I've done several things over the years to reduce resource loads: I've converted various templates to dynamic publishing to reduce loads at page rebuild time; I've switched to using Fast CGI instead of CGI. My latest trick, since the file locked down was mt-search.fcgi, was to use FastSearch 2.0.

I have to say I'm extremely pleased with the results.

I've been eyeing FastSearch for a while now, since among its useful attributes is its ability to include PHP in search templates. Movable Type's search page is a CGI script so I've been using various workarounds, such as <MTInclude file="…"> and new index templates, to include PHP content on search and tag listing pages. However, simple pagination has been impossible.

This all changes with FastSearch. Not only does FastSearch reduce resource use when searching, it includes built-in pagination functions. It also permits Google-style highlighting of search results:

Pagination

I've had to lose case-sensitive and regular expression searches, but I'm not too bothered by that. I also had to pony up a $10 donation to get the relevant modifications to permit URL-cleaning for tags (ie so that a URL of the form ../tag/xxx gets mapped to the search page with tag=xxx as a variable parameter. On the plus side again, FastSearch also modifies the <MTTagSearchLink> tag to include a directory attribute that lets you specify the directory of such cleaned up tags. Nice.

All in all, well worth the investment and pretty simple to work with, once you've got the hang of it.

Leave a comment

Your blog

This is the avatar for your blog's URL. It will appear next to all your comments. To change your avatar and get other benefits for your blog, go to MyBlogLog.

Comment preview

Subscribe to comments
You can subscribe using RSS or Bloglines to any further comments on this entry. You can also subscribe by email by checking the box below.

About this Entry

This page contains a single entry published on April 23, 2007 6:41 PM.

Virgin Mobile GPRS access from a Palm OS device was the previous entry in this blog.

I want that is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Archives

Subscribe

Subscribe to my feedSubscribe with Bloglines

Articles
RSS | Bloglines

Comments
RSS | Bloglines

Sign up for instant email updates
Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by Movable Type 4.1