Simply extension of Bogo and WP Search with Algolia. Put locale attributes into the indices.
| Author: | hide (profile at wordpress.org) |
| WordPress version required: | 5.5 |
| WordPress version tested: | 7.2 |
| Plugin version: | 0.2.2 |
| Added to WordPress repository: | 17-11-2020 |
| Last updated: | 17-11-2020
Warning! This plugin has not 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.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | https://wp-kyoto.net |
| Total downloads: | 4 020 |

Click to start download
|
The plugin will put the locale attribute into the Index created by WP Search wit Algolia depends on the Bogo settings.
FAQ
The facet has not the locale attributes!
Probably you have been created the indices before activate the plugin.
You need to delete the indices and re-index it.
Or, you can manually add the facet in the Algolia dashboard.
https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/
How can we search by the locale attribute?
You can search by the following query.
index.search("", {
"getRankingInfo": true,
"analytics": false,
"enableABTest": false,
"hitsPerPage": 10,
"attributesToRetrieve": "*",
"attributesToSnippet": "*:20",
"snippetEllipsisText": "…",
"responseFields": "*",
"maxValuesPerFacet": 100,
"page": 0,
"facets": [
"*",
"locale",
],
"facetFilters": [
[
"locale:en_US"
]
]
});
When the Bogo plugin deactivated, what the behavior will changes?
Bogo will put the _locale attributes into the post_meta, and the plugin uses it.
So the plugin still put the locale attributes if exists.
But, if the post has no _locale post_meta attribute, the plugin does not put the locale attributes.
ChangeLog
0.2.2
- Declare the GPLv2 or later license in the plugin header, which WordPress.org’s Plugin Check requires
0.2.1
- Update deploy workflow to use latest GitHub Actions
- Replace deprecated actions with modern alternatives
0.2.0
- Fix PHP 8+ compatibility: Add defensive checks for array keys before array operations
- Fix filter name typo (
algolia_bogo_allower_post_type -> algolia_bogo_allowed_post_type) with backwards compatibility
- Add PHPUnit tests with comprehensive test coverage
- Add GitHub Actions workflow for automated testing
- Improve development environment support (wp-env, wp-now)
- Modernize code and fix coding standards
- Update PHP requirement from 7.2 to 7.3
0.1.2