Post

One Search WPMU Plugin

In on Feb 07 by jason

This is a search plugin for WordPress MU (WPMU) that enables the default search box to search across all WPMU blogs. And as far as I know, this is the first 100% plugin solution that does not require cron jobs, hacking core files, or modifying your search template.

Features

  • Site-wide searching from any blog
  • Upgrade proof; No core file hacking
  • Uses default search box
  • Data is built on the fly; no cron job necessary

How It Works

Rather than relying on PHP to build complex queries at run-time, which can slow page processing, The One Search WPMU Plugin uses MySQL views. When new blogs are added, the view is automatically updated. End-user searches are then redirected from the individual blog tables and pointed to the appropriate MySQL views.

To Do

  • Create install script (for initial views)
  • Add tag and category support
  • Add end-user blog search selection (global vs . specific blog)
  • Create widget

Compatibility

  • WordPress MU 2.3.3-2.7 beta rev.1650 (verified working with directories)
  • MySQL 5.01+ (Haven’t tested on MySQL 4)
  • Works with most Search Everything Plugin (4.2.1, 4.2.2) options (not required)

Installation

  1. Upload one-search.php to your WordPress MU plugins directory. (/wp-content/mu-plugins)
  2. Setup initial views: Create a new blog from your admin.

Download

Download the One Search WPMU Plugin here:
Current version: 0.4.5
Last Updated: Feb 09
Current stable: onesearch.zip