WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Wp CJK Fulltext Index

This plugin port the full text index search functionality from mediawiki (ver 1.19.0) to wordpress.

Currently this plugin will not change the original wordpress search function. If you like to use it there are some custom function you need to add to your theme.

  1. hook the "save_post" action to choose which post you need to store full text to this plugin.

    cjkfxi_set_post($post->ID, $fulltext);

    // $fulltext can be $_POST['post_title'] or $_POST['content'] ... etc or combine each together

  2. hook the "posts_clauses_request" filter to add additional JOIN and WHERE with the search keywords to the exist SQL pattern.

    $key = get_query_var('key');

    cjkfxi_set_posts_clauses_request($clauses, $key);

  3. Remember to remove filter in the "posts_clauses_request" filter function because you just need to run it once.

  4. The original WP_Query use SQL_CALC_FOUND_ROWS to calculate the total, if you have lots of post, you can add "no_found_rows" to WP_Query's arguments and do the count yourself by adding second parameter to hook "posts_clauses_request".

The example of the "posts_clauses_request" filter: https://gist.github.com/2761739

Requires: 3.1.0 or higher
Compatible up to: 3.1.4
Last Updated: 2012-5-22
Downloads: 226

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.