{"id":18237,"date":"2012-05-22T21:29:26","date_gmt":"2012-05-22T21:29:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-cjk-fulltext-index\/"},"modified":"2012-05-22T21:47:17","modified_gmt":"2012-05-22T21:47:17","slug":"wp-cjk-fulltext-index","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-cjk-fulltext-index\/","author":254938,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"3.1.4","requires":"3.1.0","requires_php":"","requires_plugins":"","header_name":"Wp CJK Fulltext Index","header_author":"j100002ben (Benjamin Peng)","header_description":"","assets_banners_color":"","last_updated":"2012-05-22 21:47:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/wp-cjk-fulltext-index\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1135,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[17619,3006,32705,1403,749],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-18237","plugin","type-plugin","status-publish","hentry","plugin_tags-cjk","plugin_tags-full","plugin_tags-fulltext","plugin_tags-index","plugin_tags-text","plugin_committers-j100002ben"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-cjk-fulltext-index.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin port the full text index search functionality from mediawiki (ver 1.19.0) to wordpress.<\/p>\n <p>It improve the searching speed by using MATCH AGAINST than LIKE and also solve the full text index problem with cjk (Chinese, Japanese, and Korean) words.<\/p>\n <p>This plugin will create a new database table with post ID and text content.<\/p>\n\n<!--section=installation-->\n<p>Currently this plugin will not change the original wordpress search function. \nIf you like to use it there are some custom function you need to add to your theme.<\/p>\n <ol>\n<li><p>hook the \"save_post\" action to choose which post you need to store full text to this plugin.<\/p>\n <pre><code>cjkfxi_set_post($post-&gt;ID, $fulltext);  \/\/ $fulltext can be $_POST['post_title'] or $_POST['content'] ... etc or combine each together <\/code><\/pre><\/li>\n<li><p>hook the \"posts_clauses_request\" filter to add additional JOIN and WHERE with the search keywords to the exist SQL pattern.<\/p>\n <pre><code>$key = get_query_var('key');  cjkfxi_set_posts_clauses_request($clauses, $key); <\/code><\/pre><\/li>\n<li><p>Remember to remove filter in the \"posts_clauses_request\" filter function because you just need to run it once.<\/p><\/li>\n<li><p>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\".<\/p><\/li>\n<\/ol>\n <p>The example of the \"posts_clauses_request\" filter: <a href=\"https:\/\/gist.github.com\/2761739\">https:\/\/gist.github.com\/2761739<\/a><\/p>\n\n<!--section=changelog-->\n<p>Not yet.<\/p>","raw_excerpt":"This plugin port the full text index search functionality from mediawiki (ver 1.19.0) to wordpress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18237"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/j100002ben"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18237"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18237"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18237"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18237"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18237"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}