{"id":131686,"date":"2020-11-17T03:31:02","date_gmt":"2020-11-17T03:31:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-search-with-algolia-bogo-extension\/"},"modified":"2020-11-17T03:30:54","modified_gmt":"2020-11-17T03:30:54","slug":"wp-search-with-algolia-bogo-extension","status":"publish","type":"plugin","link":"https:\/\/sw.wordpress.org\/plugins\/wp-search-with-algolia-bogo-extension\/","author":13894222,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.0","stable_tag":"0.1.4","tested":"5.5.18","requires":"5.5","requires_php":"7.2","requires_plugins":"","header_name":"Search with Algolia Bogo extension","header_author":"Hidetaka Okamoto","header_description":"Simply extension of Bogo and WP Search with Algolia. Put locale attributes into the indices.","assets_banners_color":"","last_updated":"2020-11-17 03:30:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.amazon.jp\/hz\/wishlist\/ls\/1UYH9PSDMB3FZ?ref_=wl_share","header_plugin_uri":"https:\/\/wp-kyoto.net","header_author_uri":"https:\/\/wp-kyoto.net\/en","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2899,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.4":{"tag":"0.1.4","author":"hideokamoto","date":"2020-11-17 03:30:54"}},"upgrade_notice":{"0.1.2":"<ul>\n<li>Release<\/li>\n<\/ul>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[42356,13477],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-131686","plugin","type-plugin","status-publish","hentry","plugin_tags-algolia","plugin_tags-bogo","plugin_committers-hideokamoto"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-search-with-algolia-bogo-extension.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The plugin will put the <code>locale<\/code> attribute into the Index created by WP Search wit Algolia depends on the Bogo settings.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin<\/li>\n<li>Activate it and WP Search with Algolia plugin<\/li>\n<li>Configure WP Search with Algolia plugin settings<\/li>\n<li>Create indices by WP Search with Algolia<\/li>\n<li>The plugin will add the locale attributes automatically.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>The facet has not the locale attributes!<\/h3><\/dt>\n<dd><p>Probably you have been created the indices before activate the plugin.\nYou need to delete the indices and re-index it.<\/p>\n\n<p>Or, you can manually add the facet in the Algolia dashboard.\nhttps:\/\/www.algolia.com\/doc\/guides\/managing-results\/refine-results\/faceting\/<\/p><\/dd>\n<dt><h3>How can we search by the locale attribute?<\/h3><\/dt>\n<dd><p>You can search by the following query.<\/p>\n\n<pre><code>index.search(\"\", {\n \"getRankingInfo\": true,\n \"analytics\": false,\n \"enableABTest\": false,\n \"hitsPerPage\": 10,\n \"attributesToRetrieve\": \"*\",\n \"attributesToSnippet\": \"*:20\",\n \"snippetEllipsisText\": \"\u2026\",\n \"responseFields\": \"*\",\n \"maxValuesPerFacet\": 100,\n \"page\": 0,\n \"facets\": [\n  \"*\",\n  \"locale\",\n ],\n \"facetFilters\": [\n  [\n   \"locale:en_US\"\n  ]\n ]\n});\n<\/code><\/pre><\/dd>\n<dt><h3>When the Bogo plugin deactivated, what the behavior will changes?<\/h3><\/dt>\n<dd><p>Bogo will put the <code>_locale<\/code> attributes into the post_meta, and the plugin uses it.\nSo the plugin still put the locale attributes if exists.<\/p>\n\n<p>But, if the post has no <code>_locale<\/code> post_meta attribute, the plugin does not put the locale attributes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>","raw_excerpt":"Simply extension of Bogo and WP Search with Algolia. Put locale attributes into the indices.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/131686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=131686"}],"author":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hideokamoto"}],"wp:attachment":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=131686"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=131686"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=131686"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=131686"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=131686"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=131686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}