Skip to content

Version 4.3.0

Compare
Choose a tag to compare
@felipeelia felipeelia released this 31 Aug 13:34
· 2865 commits to develop since this release

ElasticPress 4.3.0 fixes some bugs and introduces some new and exciting changes.

WooCommerce Product Variations SKUs are now a publicly searchable field. Site administrators wanting to allow users to search for their product variations SKUs can enable it in the Search Fields & Weighting Dashboard, under Products. If a user searches for a variation SKU, the parent product will be displayed in the search results.

The last ElasticPress sync information is now available in WordPress's Site Health. If you want to check information like the date of the last full sync, time spent, number of indexed content, or errors go to Tools -> Site Health, open the Info tab and click on ElasticPress - Last Sync.

Facets received some further improvements in this version. In addition to some refactoring related to WordPress Block Editor, ElasticPress 4.3.0 ships with an experimental version of a Facet By Meta block. With that, users will be able to filter content based on post meta fields. If you want to try it, download and activate this plugin. Do you have an idea of an enhancement? Search in our facets label in GitHub and if it is not there yet, feel free to open a new issue. We would love to hear new ideas!

Added

  • Search products by their variations' SKUs. Props @burhandodhy via #2854.
  • New block to Facet by Meta fields. Props @felipeelia and @tott via #2954 and #2968.
  • Display last sync info in site health screen. Props @oscarssanchez and @felipeelia via #2917 and #2973.
  • New epwr_decay_field filter to set the decay field for date weighting. Props @MARQAS and @HypeAU via #2907.
  • Autosuggest: filter the autosuggest ElasticSearch query by defining a window.epAutosuggestQueryFilter() function in JavaScript. Props @johnwatkins0 via #2909.
  • Autosuggest: filter the HTML of all results by defining a window.epAutosuggestListItemsHTMLFilter() function in JavaScript. Props @JakePT via #2902.
  • Autosuggest: filter the container element by defining a window.epAutosuggestElementFilter() function in JavaScript. Props @JakePT via #2902.
  • Documentation for Autosuggest JavaScript filters. Props @JakePT and @brandwaffle via #2902.
  • Documentation for styling Instant Results. Props @JakePT via #2949.
  • Use wp_cache_flush_group() for autosuggest when available. Props @tillkruss via #2916.
  • The public search API is automatically deactivated when the Instant Results feature is deactivated. Props @JakePT via #2821.
  • Support for transforming instances of the legacy Facet and Related Posts widgets into blocks. Props @JakePT via #2819.
  • Use wp_cache_flush_runtime() when available. Props @tillkruss, @felipeelia, and @tott via #2915.
  • E2E tests for the Custom Results feature. Props @burhandodhy and @felipeelia via #2871.
  • E2E tests for the Terms feature. Props @burhandodhy and @felipeelia via #2931.

Changed

  • Improved performance in get_term_tree(). Props @rebeccahum via #2883.
  • Migrated Related Posts block definitions to block.json. Props @JakePT via #2898.
  • Total comment count made during sync process to be a proper count call. Props @felipeelia and @bsabalaskey via #2903.
  • Search algorithms moved to separate classes. Props @felipeelia via #2880.
  • The legacy Facet and Related Posts widgets are now hidden when using the block editor. Props @JakePT via #2819.
  • Facets are now divided by types and received their own class. Props @felipeelia via #2919.
  • PHP compatibility check merged to regular lint. Props @felipeelia via #2945.
  • E2e tests to run WP-CLI commands in an existent docker container. Props @felipeelia via #2944.
  • Increased E2e tests coverage for WP-CLI commands. Props @burhandodhy and @felipeelia via #2926.

Deprecated

  • The following filters were deprecated via #2880. They will still work but add a notice in the error logs.
Old Filter New Filter
ep_formatted_args_query ep_post_formatted_args_query
ep_match_phrase_boost ep_post_match_phrase_boost
ep_match_boost ep_post_match_boost
ep_fuzziness_arg ep_post_fuzziness_arg
ep_match_fuzziness ep_post_match_fuzziness
ep_match_cross_fields_boost ep_post_match_cross_fields_boost

Fixed

  • Error returned by the recreate-network-alias CLI command when called on single site. Props @burhandodhy via #2906.
  • Term objects in format_hits_as_terms to use WP_Term instead of stdClass to match WordPress expectations. Props @jonathanstegall via #2913.
  • Post reindex on meta deletion. Props @pschoffer via #2862.
  • Autosaved drafts not showing up in draft post listing when using the Protected Content feature. Props @rebeccahum and @felipeelia via #2861.
  • Display fatal error messages in the Sync Dashboard. Props @felipeelia and @orasik via #2927.
  • An issue where syncing after skipping setup, instead of deleting and syncing, resulted in an error. Props @JakePT via #2858 and #2939.
  • Stuck progress bar when no post is found. Props @felipeelia and @burhandodhy via #2953.
  • Infinite loop during sync if the site has just password protected posts and no other content. Props @felipeelia and @burhandodhy via #2953.
  • JS error on Custom Results edit page. Props @burhandodhy via #2935.
  • Horizontal scroll in ElasticPress Quick Setup Screen. Props @MARQAS and @JakePT via #2937.
  • Allows to replace post_excerpt with highlighted results from within AJAX and other integrated contexts. Props @nickchomey via #2941.
  • Empty results for taxonomy terms that have non ASCII characters. Props @alaa-alshamy via #2948.
  • Format of highlight tags quotation mark. Props @nickchomey via #2942.
  • Intermittent error with sticky posts in the tests suite. Props @felipeelia via #2943.

Security

See: https://github.com/10up/ElasticPress/milestone/64?closed=1