Search reloaded, v.0.4

In resources — As much as I love WordPress’ plugin system, I sometimes find it completely broken. Relying on global variables is just insane. Yet, it’s the only way to get things done in many cases. And consequently, you’ll get bugs and more bugs.

For instance, the feedwordpress plugin will wreck any subsequent filter applied to the_permalink in some circumstances. And there’s not much you can do about it until WordPress provides a way to know where the context a filter is applied in.

Likewise, the Content with show/hide javascript for “more” plugin will wreck any subsequent filter applied to the_content. And no matter how much you flush your node index, search reloaded will be broken.

Speaking of flushing your node index, v.0.4 is out, fixes a bug and adds that feature. To use it, visit the following when logged in as admin:

Comments on Search reloaded, v.0.4

  1. Denis,

    Search Reloaded failed to create the wp_sem_nodes table. I am running wordpress, MySQL 2.0.54, and PHP 5.0.4. After troubleshooting the problem seemed ot be with the FULLTEXT index. The MySQL doc says that FULLTEXT is only available on MyISAM tables. I made the following change to your SearchReloaded init function and the problem was resolved.

    $wpdb->get_results(“# sem_search_init
    CREATE TABLE IF NOT EXISTS `$wpdb->sem_nodes` (
    `node_id` int(10) unsigned NOT NULL default ‘0’ ,
    `node_name` tinytext NOT NULL ,
    `node_content` text NOT NULL ,
    PRIMARY KEY (`node_id`) ,
    FULLTEXT KEY `node` (`node_name`,`node_content`)