Version 4.2.0
ElasticPress 4.2.0 fixes some bugs and introduces some new and exciting changes.
The sync functionality had its JavaScript refactored. Timeouts, memory limits, and general errors are now properly handled and do not make the sync get stuck when performed via the WP-CLI index
command. There is also a new get-last-sync
WP-CLI command to check the errors and numbers from the last sync.
We've improved the admin search experience for sites using both WooCommerce and Protected Content. Previously, WooCommerce was processing that screen with two different queries, and EP was used only in one of them. Now, it will be only one query, fully handled by ElasticPress. Users wanting to keep the previous behavior can do so by adding add_filter( 'ep_woocommerce_integrate_admin_products_list', '__return_false' );
to their website's codebase.
Facets are now available through a WordPress block. If you are using the Full Site Editing feature, you can now add ElasticPress Facets to your theme with just a few clicks! This block has been introduced with a simplified user interface to enable compatibility with Full Site Editing and will continue to be iterated and improved in future versions of the plugin.
Added
- E2e tests for the Facets feature. Props @felipeelia via #2667.
$post_args
and$post_id
to theep_pc_skip_post_content_cleanup
filter. Props @felipeelia and @ecaron via #2728.- New filter
ep_integrate_search_queries
. Props @rebeccahum and @felipeelia via #2735. - New
get-last-sync
WP-CLI command. Props @felipeelia via #2748. - Facet block (previously only available as a widget.) Props @felipeelia via #2722.
- New
_variations_skus
field to WooCommerce products. Props @felipeelia, @kallehauge, and @lukaspawlik via #2763. - Support for ordering Users by
user_registered
and lowercaseid
. Props @felipeelia and @burhandodhy via #2781. - New filter
ep_sync_number_of_errors_stored
. Props @felipeelia, @tott and @JakePT via #2789.
Changed
- Facets widgets rendered by a separate class. Props @felipeelia via #2712.
- Deprecated
ElasticPress\Feature\Facets\Widget::get_facet_term_html()
in favor ofElasticPress\Feature\Facets\Renderer::get_facet_term_html()
. Props @felipeelia via #2712. - Log errors and remove indexing status on failed syncs. Props @felipeelia via #2748.
- Refactored Sync page JavaScript. Props @JakePT via #2738.
- Updated admin scripts to use WordPress's version of React. Props @JakePT via #2756.
- WooCommerce products list in the Dashboard now properly leverages ElasticPress. Props @felipeelia via #2757.
- Removed Instant Results' dependency on
@wordpress/components
and@wordpress/date
. Props @JakePT and @felipeelia via #2774. - (Protected Content) Password-protected posts are only hidden on searches. Props @felipeelia, @JakePT, and @burhandodhy via #2780.
- The plugin is now available via Composer without any additional steps required. Props @felipeelia, @jeffpaul, and @johnbillion via #2799.
Fixed
- WP-CLI parameters documentation. Props @felipeelia via #2711.
- Full indices removal after e2e tests. Props @felipeelia and @dustinrue via #2710.
- Usage of the
$return
parameter inFeature\RelatedPosts::find_related()
. Props @felipeelia and @altendorfme via #2719. - Link to API Functions under the Related Posts feature -> Learn more. Props @felipeelia and @burhandodhy via #2729.
- Sync of WooCommerce Orders fields when WooCommerce and Protected Content features are enabled. Props @felipeelia and @ecaron via #2728.
- An issue where selecting no features during install would just cause the install page to reload without any feedback. Props @JakePT and @tlovett1 via #2734.
- An issue where deselecting a feature during install would not stop that feature from being activated. Props @JakePT via #2734.
- Add the missing text domain for the Related Posts block. Props @burhandodhy via #2751.
- Console error when hitting enter on search inputs with autosuggest. Props @burhandodhy, @felipeelia, and @MarijnvSprundel via #2754.
- An issue where attribute selectors could not be used for the Autosuggest Selector. Props @JakePT and @oscarssanchez via #2753.
- "Time elapsed" and "Total time elapsed" in WP-CLI index command. Props @felipeelia and @archon810 via #2762.
- Sync process with skipped objects. Props @juliecampbell and @felipeelia via #2761.
- Typo in the sync page. Props @JakePT and @davidegreenwald via #2767.
- WP-CLI index command without the
--network-wide
only syncs the main site. Props @felipeelia and @colegeissinger via #2771. - WP-CLI commands
get-mapping
,get-indexes
,status
, andstats
only uses all sites' indices name when network activated. Props @felipeelia and @colegeissinger via #2771. - A bug where URL search parameters could be cleared when using Instant Results. Props @JakePT and @yashumitsu via #2777.
- Undefined index notice in Facets renderer. Props @felipeelia and @burhandodhy via #2779.
- Prevent an unnecessary call when the ES server is not set yet. Props @felipeelia and @burhandodhy via #2782.
- An incompatibility with the way WP 6.0 handles WP_User_Query using fields. Props @felipeelia via #2800.
Security
- Bumped
moment
from 2.29.1 to 2.29.2. Props @dependabot via #2709. - Bumped
@wordpress/env
from 4.4.0 to 4.5.0. Props @felipeelia via #2721.
See: https://github.com/10up/ElasticPress/milestone/63?closed=1