{"id":6724,"date":"2009-09-15T19:06:36","date_gmt":"2009-09-15T19:06:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/google-search\/"},"modified":"2009-09-28T23:25:26","modified_gmt":"2009-09-28T23:25:26","slug":"google-search","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/google-search\/","author":186678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2","stable_tag":"trunk","tested":"2.8","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Google Search for WordPress","header_author":"Weston Ruter","header_description":"","assets_banners_color":"","last_updated":"2009-09-28 23:25:26","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/google-search\/","header_author_uri":"http:\/\/weston.ruter.net\/","rating":0,"author_block_rating":0,"active_installs":30,"downloads":11835,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","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":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[944],"plugin_category":[],"plugin_contributors":[78438],"plugin_business_model":[],"class_list":["post-6724","plugin","type-plugin","status-closed","hentry","plugin_tags-search","plugin_contributors-westonruter","plugin_committers-westonruter"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/google-search.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><em>Note: This documentation is a first-stab and hasn't been thoroughly edited.<\/em><\/p>\n\n<p><em>This plugin is developed at\n<a href=\"http:\/\/www.shepherd-interactive.com\/\" title=\"Shepherd Interactive specializes in web design and development in Portland, Oregon\">Shepherd Interactive<\/a>\nfor the benefit of the community. No support is available. Please post any questions to the <a href=\"http:\/\/wordpress.org\/tags\/google-search?forum_id=10\">support forum<\/a>.<\/em><\/p>\n\n<p>Replaces WordPress Search results with results from <a href=\"http:\/\/code.google.com\/apis\/ajaxsearch\/documentation\/reference.html#_intro_fonje\">Google Search Ajax API\nfor Flash and other Non-Javascript Environments<\/a>. You must abide by Google's <a href=\"http:\/\/code.google.com\/apis\/ajaxsearch\/terms.html\">terms of use<\/a>, the\nmost important of which is that you must include \"powered by Google\" with the\nsearch form (<code>searchform.php<\/code>) and search results\n(<code>search.php<\/code>). Furthermore, as is <a href=\"http:\/\/code.google.com\/apis\/ajaxsearch\/key.html\">advised<\/a>\nby the API documentation that you supply an API key in the\n'<code>google_ajaxsearch_api_key<\/code>' option which can be done on the options page.\n<a href=\"http:\/\/code.google.com\/apis\/ajaxsearch\/signup.html\">Sign-up for an AJAX Search API Key<\/a>.<\/p>\n\n<p><strong>Requires at least PHP 5 and that <code>json_decode()<\/code> be defined.<\/strong><\/p>\n\n<p>Note that Google must have indexed your blog's content in order for it to appear\nin the Google-powered WordPress search (hence you must have your blog visibility set to public).\nNewly-published content won't appear immediately in the search results.\nFurthermore, the Google Search API only returns results either 4 (small) or 8 (large) results at a time, thus\nthe <code>posts_per_page<\/code> setting is ignored, and at most 8 results are always displayed\non each search result page.<\/p>\n\n<p>The <code>post<\/code> objects returned do not have their corresponding WordPress <code>ID<\/code>s associated with them\nor other WordPress post metadata. You will only have access to:<\/p>\n\n<ul>\n<li><code>post_title<\/code> (invoked by <code>the_title()<\/code>)<\/li>\n<li><code>post_excerpt<\/code> (invoked by <code>the_excerpt()<\/code>)<\/li>\n<li><code>post_content<\/code> (invoked by <code>the_content()<\/code>, same as <code>post_excerpt<\/code>)<\/li>\n<\/ul>\n\n<p>However, there is an addition property \"<code>google_search_result<\/code>\" that has all of the\ninformation that the Google Search API provided for the result. Do not invoke the following template tags since\nthe data won't be available (not exhaustive):<\/p>\n\n<ul>\n<li><code>the_ID()<\/code><\/li>\n<li><code>the_category()<\/code><\/li>\n<li><code>the_author()<\/code><\/li>\n<li><code>the_date()<\/code><\/li>\n<li><code>the_time()<\/code><\/li>\n<li><code>edit_post_link()<\/code><\/li>\n<li><code>comments_popup_link()<\/code><\/li>\n<\/ul>\n\n<p>The default WordPress search in the admin backend is not replaced with Google Search.<\/p>\n\n<p>More information about how the plugin works can be found in the source code of the plugin itself.\nSee also the \"Google Search\" options page that is added to the Settings admin menu.<\/p>\n\n<h4>Plugin Hooks<\/h4>\n\n<ul>\n<li>Filter: <code>google_search_highlight_start_tag<\/code>, default: <code>'&lt;b&gt;'<\/code> -- this is the start tag for the highlighted search term in the search results (for HTML5, this should be filtered to return <code>&lt;mark&gt;<\/code>)<\/li>\n<li>Filter: <code>google_search_highlight_end_tag<\/code>, default: <code>'&lt;\/b&gt;'<\/code> -- this is the start tag for the highlighted search term in the search results (for HTML5, this should be filtered to return <code>&lt;\/mark&gt;<\/code>)<\/li>\n<li>Filter: <code>google_search_site<\/code>, default: <code>parse_url(get_option('siteurl'), PHP_URL_HOST))<\/code> -- this is the site domain that will be provided to the <code>site:<\/code> operator when querying the Google API. Useful if you have a staging environment.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>2009-09-15: 0.2<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Replaces WordPress Search with Google Search. You must abide by Google&#039;s terms of use, the\nmost important of which is that you must include &amp;quot &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6724","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=6724"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/westonruter"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6724"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6724"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6724"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6724"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6724"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}