{"id":121377,"date":"2020-05-11T16:02:15","date_gmt":"2020-05-11T16:02:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-static-search\/"},"modified":"2020-05-11T17:46:45","modified_gmt":"2020-05-11T17:46:45","slug":"wp-static-search","status":"publish","type":"plugin","link":"https:\/\/ug.wordpress.org\/plugins\/wp-static-search\/","author":17963712,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"trunk","tested":"5.4.19","requires":"5.2","requires_php":"7.2","requires_plugins":"","header_name":"WP Static Search","header_author":"Gergely Szerovay","header_description":"Static search plugin for Wordpress static websites","assets_banners_color":"","last_updated":"2020-05-11 17:46:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/gergelyszerovay\/wp-static-search","header_author_uri":"https:\/\/gergely.szerovay.hu","rating":4.5,"author_block_rating":0,"active_installs":10,"downloads":1085,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[944],"plugin_category":[],"plugin_contributors":[185602],"plugin_business_model":[],"class_list":["post-121377","plugin","type-plugin","status-publish","hentry","plugin_tags-search","plugin_contributors-gergelyszerovay","plugin_committers-gergelyszerovay"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-static-search.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\nWP Static Search\n\n<p>This plugin adds a static search engine to your Wordpress site. Static in this context means that it works in the browser without using of server-side queries, so it\u2019s ideal for static <a href=\"https:\/\/github.com\/gergelyszerovay\/wp-static-proxy\">websites generated from a Wordpress site<\/a>.<\/p>\n\n<p>Since both the search and the indexing happens in the browser, this plugin is not a good fit for sites that contain hundreds of pages and posts.<\/p>\n\n<h3>Getting Started<\/h3>\n\n<p>After you are installed the plugin, choose the \u201dStatic Search\u201d option from the left sidebar of the Wordpress admin interface. Press the \u201dUpdate Index\u201d button and wait until the indexing is finished. Each time you change the content of the website, you should update the search index manually.<\/p>\n\n<p>To insert the search box and the search results into the site, use the [static_search] shortcode. It\u2019s a good practice to create a page called \u201dSearch\u201d with the slug \u201d\/search\/\u201d and insert the [static_search] shortcode into this page. To redirect the search widgets to this page, append the following code to the bottom of your .htaccess file:<\/p>\n\n<pre><code>RewriteCond %{QUERY_STRING} \\\\?s=([^&amp;]+) [NC]\n\nRewriteRule ^$ \/search\/?q=%1 [NC,R,END]\n<\/code><\/pre>\n\n<p>This code redirects the search queries to the \/search\/ page, then the [static_search] shortcode processes them and shows the search results.<\/p>\n\n<h3>Built With<\/h3>\n\n<p><a href=\"https:\/\/lunrjs.com\/\">lunar.js<\/a> - Javascript search engine<\/p>\n\n<h3>Versioning<\/h3>\n\n<p>We use SemVer for versioning. For the versions available, see the tags on this repository.<\/p>\n\n<h3>License<\/h3>\n\n<p>This project is licensed under the Apache 2 and GPL2+ Licenses\nAcknowledgments<\/p>\n\n<p>The frontend search code based on the <a href=\"https:\/\/www.mkdocs.org\/\">MkDocs project\u2019s<\/a> search plugin.<\/p>","raw_excerpt":"This plugin adds a static search engine to your Wordpress\u00a0site. Static in this context means that\u00a0it works in the browser without using of server-side &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121377"}],"author":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gergelyszerovay"}],"wp:attachment":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121377"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121377"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121377"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121377"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121377"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}