Skip to content

Releases: 10up/ElasticPress

Version 4.6.1

05 Jul 17:00
Compare
Choose a tag to compare

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

Changed

Fixed

  • Deprecation notice in ElasticPress\Feature\WooCommerce\Orders. Props @mwidmann via #3507.
  • Don't apply a facet filter to the query if the filter value is empty. Props @burhandodhy via #3524.
  • Syncing a post with empty post meta key. Props @MARQAS and @oscarssanchez via #3516.
  • Order by clauses with Elasticsearch field formats are not changed anymore. Props @felipeelia and @tlovett1 via #3512.
  • Failed Query logs are automatically cleared on refreshing the "Status Report" page. Props @burhandodhy via #3533.
  • Warning message on Health page when Last Sync information is not available. Props @burhandodhy via #3530.
  • Deprecation notice: json_encode(): Passing null to parameter #2. Props @burhandodhy via #3532.
  • Documentation of the ep_facet_search_get_terms_args filter. Props @burhandodhy via #3525.

See: https://github.com/10up/elasticpress/milestone/76?closed=1

Version 4.6.0

13 Jun 16:07
Compare
Choose a tag to compare

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

Changed

Fixed

  • Fatal error related to the maybe_process_error_limit function. Props @burhandodhy via #3454.
  • Display the error message returned by Elasticsearch if a mapping operation fails. Props @felipeelia via #3464 and #3495.
  • Negative menu_order values being transformed into positive numbers. Props @felipeelia and @navidabdi via #3468.
  • Password protected content being indexed upon save when Protected Content is not active. Props @felipeelia and @burhandodhy via #2864.
  • Error message when the Elasticsearch server is not available during the put mapping operation. Props @felipeelia via #3483.

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

Version 4.5.2

19 Apr 17:25
Compare
Choose a tag to compare

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

  • New ep_enable_query_integration_during_indexing filter. Props @rebeccahum via #3445.

Changed

Fixed

  • Authenticated requests for autosuggest were not being properly cached while using external object cache. Props @felipeelia via #3438.

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

Version 4.5.1

11 Apr 17:03
Compare
Choose a tag to compare

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

  • New ep_instant_results_args_schema filter for filtering Instant Results arguments schema. Props @JakePT via #3389.
  • New ep.Autosuggest.navigateCallback JS filter for changing the behavior of a clicked element on Autosuggest. Props @oscarssanchez, @felipeelia, and @JakePT via #3419.
  • New ep.Autosuggest.fetchOptions JS filter for filtering Elasticsearch fetch configuration of Autosuggest. Props @tlovett1, @MARQAS, and @felipeelia via #3382.
  • Code linting before pushing to the repository. Props @felipeelia via #3411.
  • Unit tests for the Status Reports feature. Props @burhandodhy via #3395.

Changed

  • Meta field facets now only filter based on fields selected on blocks. The new ep_facet_should_check_if_allowed filter reverts this behavior. Props @felipeelia and @burhandodhy via #3430.

Fixed

Security

See: https://github.com/10up/elasticpress/milestone/72?closed=1

Version 4.5.0

09 Mar 20:40
Compare
Choose a tag to compare

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.

ElasticPress 4.5.0 release highlights:

Added

Changed

  • Indices of disabled features will be deleted during a full sync. Mappings of needed but non-existent indices will be added even during a regular sync. Props @felipeelia via #3261.
  • Reduced number of WooCommerce product queries automatically integrated with ElasticPress. Props @burhandodhy and @felipeelia via #3259 and #3362.
  • The number of results per page in Instant Results now matches the site's posts per page setting. Props @JakePT via #3292.
  • Under the hood improvements to the structure of Instant Results. Props @JakePT via #3159 and #3293.
  • Apply the "Exclude from Search" filter directly on ES Query. Props @burhandodhy via #3266.
  • Avoid using Elasticsearch if query has an unsupported orderby clause. Props @burhandodhy via #3273.
  • E2e tests split into 2 groups to be executed in parallel. Props @iamchughmayank, @burhandodhy, and @felipeelia via #3283.
  • Filter command flags using get_flag_value(). Props @oscarssanchez and @felipeelia via #3301.
  • Code Standards are now applied to the test suite as well. Props @felipeelia via #3351.
  • Text displayed when a feature that requires a sync is about to be enabled. Props @felipeelia and @brandwaffle via #3380.

Removed

  • Remove legacy filters woocommerce_layered_nav_query_post_ids, woocommerce_unfiltered_product_ids, and ep_wp_query_search_cached_posts. Props @burhandodhy via #3230.

Fixed

  • API requests for Instant Results sent on page load before the modal has been opened. Props @JakePT via #3159.
  • Prevent search queries for coupons from using Elasticsearch. Props @burhandodhy via #3222.
  • Thumbnails are not removed from indexed WooCommerce Products when the attachments are deleted. Props @burhandodhy and @JakePT via #3267.
  • Auto sync posts associated with a child term when the term parent is changed. Props @MARQAS and @felipeelia via #3145.
  • Status Report page firing requests to ES twice. Props @felipeelia via #3265.
  • Sanitization of Meta Queries. Props @MARQAS via [#3271](...
Read more

Version 4.4.1

10 Jan 18:10
Compare
Choose a tag to compare

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.

This is a bug fix release.

Added

Changed

Removed

Fixed

Security

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

Version 4.4.0

29 Nov 18:19
Compare
Choose a tag to compare

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.

ElasticPress 4.4.0 release highlights:

  • New Status Report page and failed queries logs (#3130, #3148, and #3136)
  • Instant Results template customization (#2959)
  • Facets by Meta available by default. Users should delete the 1-file plugin released with 4.3.0 (#3071)
  • New option to exclude posts from search (#3100)
  • Renamed some WP-CLI commands and added deprecation notices for the old versions (see table below)

Added

  • New Status Report page. Props @felipeelia, @JakePT, @tott, and @brandwaffle via #3130, #3148, and #3154.
  • New Query Logger to display admin notices about failed queries and the list in the new Status Report page. Props @felipeelia, @JakePT, and @brandwaffle via #3136 and #3165.
  • New option to exclude posts from search. Props @burhandodhy, @felipeelia, and @JakePT via #3100, #3156, and #3161.
  • Search Comments block. Replaces the Comments widget in the block editor. Props @JakePT and @felipeelia via #2986.
  • [Instant Results] Notice when ElasticPress is network activated warning that Instant Results will not work on all sites without additional steps. Props @JakePT via #3149.
  • Extra debugging information in the browser console when syncing fails and more useful error messages with a troubleshooting URL. Props @JakePT via #3133.
  • New elasticpress.InstantResults.Result JavaScript filter for filtering the component used for Instant Results search results. Props @JakePT via #2959.
  • New window.epInstantResults.openModal() method for developers to manually open Instant Results. Props @JakePT via #2987.
  • Support for stock_status filter on the WooCommerce Admin Product List. Props @felipeelia and @jakgsl via #3036.
  • Option to toggle the term count in Instant results. Props @MARQAS and @JakePT via #3007.
  • New ep_autosuggest_query_args filter, to change WP Query args of the autosuggest query template. Props @felipeelia via #3038.
  • New ep_post_filters filter and refactor of the Post::format_args method. Props @felipeelia via #3044.
  • New get_index_settings() method to retrieve index settings. Props @rebeccahum via #3126.
  • New ep_woocommerce_default_supported_post_types and ep_woocommerce_admin_searchable_post_types filters. Props @ecaron via #3029.
  • Add test factories for Post, User and Term. Props @burhandodhy via #3048.
  • Unit tests to check access to custom results endpoints. Props @burhandodhy via #3022.
  • New unit tests for the user feature. Props @burhandodhy via #3061.

Changed

Deprecated

  • The following WP-CLI commands were deprecated via #3028. They will still work but with a warning.
Old Command New Command
wp elasticpress index wp elasticpress sync
wp elasticpress get-cluster-indexes wp elasticpress get-cluster-indices
wp elasticpress get-indexes wp elasticpress get-indices
wp elasticpress clear-index wp elasticpress clear-sync
wp elasticpress get-indexing-status wp elasticpress get-ongoing-sync-status
wp elasticpress get-last-cli-index wp elasticpress get-last-cli-sync
wp elasticpress stop-indexing wp elasticpress stop-sync

Props @MARQAS and @felipeelia.

  • The sites parameter for WP_Query, WP_Term_Query and WP_Comment_Query was deprecated in favor of the new site__in and site__not_in. Props @burhandodhy via #2991.

Removed

Read more

Version 4.3.1

27 Sep 17:09
Compare
Choose a tag to compare

This release fixes some bugs and also adds some new filters.

Added

  • New ep_facet_taxonomy_terms filter to filter the Facet terms. Props @burhandodhy and @felipeelia via #2989.
  • Added ep.Autosuggest.itemHTML, ep.Autosuggest.listHTML, ep.Autosuggest.query, and ep.Autosuggest.element JavaScript hooks to Autosuggest and migrated filter functions to hook callbacks for backwards compatibility. Props @JakePT via #2983.
  • E2E tests for the Comments Feature. Props @burhandodhy via #2955.
  • E2E tests for the Instant Results feature. Props @MARQAS and @felipeelia via #2851.
  • More E2E tests for the WooCommerce Feature. Props @burhandodhy via #2923.

Changed

  • REST API endpoints used for managing custom results are no longer publicly accessible. Props @JakePT and @PypWalters via #3004.

Fixed

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

Version 4.3.0

31 Aug 13:34
Compare
Choose a tag to compare

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

Read more

Version 4.2.2

14 Jul 17:15
Compare
Choose a tag to compare

This is a bug fix release.

Added

Changed

  • update_index_settings() now accounts for the index closing action timing out and re-opens index if closed. Props @rebeccahum via #2843.

Fixed

Security

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