Version 4.7.0
Note that starting from the ElasticPress 5.0.0 release the Users
feature will be moved to the ElasticPress Labs plugin. The Terms
and Comments
features will remain in ElasticPress but will be available only if enabled via code. Check our blog post for more info.
Added
- Exclude Media Attachments from search results. Props @burhandodhy via #3539.
- New
Default to Site Language
option in the language dropdown in ElasticPress' settings page. Props @felipeelia via #3550. - Compatibility with block themes for the Facet meta blocks. Props @felipeelia via #3498.
- Integrate Did You Mean feature in the Instant Results. Props @burhandodhy and @JakePT via #3564.
- All blocks now support styling features in themes that support them. Props @JakePT via #3403 and #3584.
- Descriptions and keywords have been added to all blocks. Props @JakePT via #3403.
- New
ep_stop
filter, that changes the stop words used according to the language set. Props @felipeelia via #3549. - New
get-index-settings
WP-CLI command. Props @felipeelia via #3547. - New
ep_facet_tax_special_slug_taxonomies
filter. Props @oscarssanchez via #3506. - New
--stop-on-error
flag to thesync
command. Props @oscarssanchez via #3500. - New
get
WP-CLI command. Props @felipeelia via #3567. - Transient utility functions. Props @felipeelia via #3551.
- Indices' language settings in status reports. Props @felipeelia via #3552.
- Initial changes to implement a DI Container. Props @felipeelia and @tott via #3559.
- New
$only_indexable
parameter to theUtils\get_sites()
function. Props @felipeelia via #3577.
Changed
- WooCommerce feature only integrates with queries that are the main query, a search, or have ep_integrate set as true. Props @felipeelia via #3546.
- Miscellaneous changes to all blocks, including their category, names, and code structure. Props @JakePT, @oscarssanchez, and @felipeelia via #3403.
- The Facets feature was renamed to Filters. Props @JakePT and @felipeelia via #3403, #3581, and #3597.
- The WooCommerce feature was refactored, separating code related to products and orders. Props @felipeelia via #3502.
- Transients deletion during uninstall. Props @felipeelia via #3548.
- Bump Elasticsearch version to 7.10.2 for E2E tests. Props @burhandodhy via #3556 and #3561.
- Refactor
get_settings()
usage inside ElasticPress features. Props @oscarssanchez and @felipeelia via #3558. - In a multisite, if a site is indexable or not is now stored in site meta, instead of a blog option. Props @felipeelia via #3571.
- Autosuggest authenticated requests are not cached anymore and are only sent during the sync process or when the weighting dashboard is saved. Props @felipeelia and @kovshenin via #3566.
- Use
createRoot
instead ofrender
to render elements. Props @oscarssanchez, @burhandodhy, @JakePT, and @felipeelia via #3573 and #3595. - Moved methods to abstract Facet classes. Props @oscarssanchez and @felipeelia via #3499.
- Only display available languages in the Settings screen. Props @felipeelia and @JakePT via #3587.
- WooCommerce feature description. Props @brandwaffle, @felipeelia, and @JakePT via #3592.
Deprecated
Autosuggest::delete_cached_query()
was deprecated without a replacement. See #3566.EP_Uninstaller::delete_related_posts_transients()
andEP_Uninstaller::delete_total_fields_limit_transients()
was merged intoEP_Uninstaller::delete_transients_by_name
. See #3548.- The
ep_woocommerce_default_supported_post_types
filter was split intoep_woocommerce_orders_supported_post_types
andep_woocommerce_products_supported_post_types
. See #3502. - The
ep_woocommerce_supported_taxonomies
filter is nowep_woocommerce_products_supported_taxonomies
. See #3502. - All old
WooCommerce\Orders
methods were migrated to the newWooCommerce\OrdersAutosuggest
class. See #3502. - The
Elasticsearch::clear_total_fields_limit_cache()
method was replaced byElasticsearch::clear_index_settings_cache()
. See #3552. - Several methods that were previously part of the
WooCommerce\WooCommerce
class were moved to the newWooCommerce\Product
class. See #3502. - Several methods that were specific to Facet types were moved to the new
Block
andRenderer
abstract classes. See #3499.
Fixed
- Same error message being displayed more than once on the Dashboard sync. Props @felipeelia, @MARQAS, @tott, and @wildberrylillet via #3557.
- Sync media item when attaching or detaching media. Props @MARQAS and @felipeelia via #3562.
- Display "Loading results" instead of "0 results" on first search using Instant Results. Props @oscarssanchez and @JakePT via #3568.
- Highlighting returning inaccurate post title when partial/no term match on Instant Results. Props @oscarssanchez, @JakePT, and @tomi10up via #3575.
- Warning in Orders Autosuggest:
"Creation of dynamic property $search_template is deprecated"
. Props @burhandodhy via #3591. - Warning while using PHP 8.1+:
Deprecated: version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated
. Props @felipeelia and @burhandodhy via #3593. - Warning in the metadata range facet renderer:
Undefined array key "is_preview"
. Props @felipeelia and @burhandodhy via #3594.
Security
- Bumped
word-wrap
from 1.2.3 to 1.2.4. Props @dependabot via #3543. - Bumped
tough-cookie
from 4.1.2 to 4.1.3 and@cypress/request
from 2.88.10 to 2.88.12. Props @dependabot via #3583.
See: https://github.com/10up/ElasticPress/milestone/75?closed=1