ElasticPress

A fast and flexible search and query engine for WordPress.

GPL-2.0 License

Downloads
273.8K
Stars
1.2K
Committers
161

Bot releases are hidden (Show)

ElasticPress - Version 5.1.3 Latest Release

Published by felipeelia 4 months ago

Fixed

  • Missing nonces on some sync trigger URLs, making them require a manual interaction from the user. Props @felipeelia via #3933.

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

ElasticPress - Version 5.1.2

Published by felipeelia 4 months ago

This is a security release affecting all previous versions of ElasticPress.

Security

  • Missing nonce verification for the sync triggered during activation of some features. Props @felipeelia and @dhakalananda via #3929.
  • Missing nonce verification for retrying the EP connection and fixed PHPCS linting rules. Props @felipeelia via #3932.

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

ElasticPress - Version 5.1.1

Published by felipeelia 5 months ago

Changed

Fixed

  • Status report page when indexable post types is an empty array. Props @furai via #3910.

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

ElasticPress - Version 5.1.0

Published by felipeelia 6 months ago

Added

  • [Filters] New ep_facet_enabled_in_editor filter to enabled facet blocks in the post editor. Props @JiveDig and @felipeelia via #3845.
  • Official support to Elasticsearch 8.x. Props @felipeelia via #3854.
  • A new Sync errors tab, with errors grouped by type and links to support documentation when available. Props @JakePT and @apurvrdx1 via #3803.
  • [WooCommerce] HPOS compatibility notice for WooCommerce Orders. Props @felipeelia via #3861.
  • [Synonyms] A new settings screen with the the ability to bulk delete synonyms, support for many-to-many replacements, and a new type of synonym for terms with a hierarchical relationship, called hyponyms. Props @JakePT and @apurvrdx1 via #3814.
  • Infinite loop when using excerpt highlighting with posts that use blocks that print an excerpt. Props @felipeelia and @JakePT via #3867.
  • Context parameter to the get_capability() function. Props @felipeelia and @selim13 via #3866.
  • A tooltip for meta keys to the weighting screen to allow seeing the full key if it has been truncated. Props @JakePT via #3865.
  • New ep_weighting_options filter to modify the weighting dashboard options. Props @burhandodhy via #3827.
  • New ep_post_test_meta_value filter. Props @felipeelia via #3850.
  • New message related to indices limits on ElasticPress.io. Props @felipeelia via #3898.

Changed

  • Acknowledge all Elasticsearch modules, making the Documents feature available in ES 8 installations by default. Props @felipeelia, @Serverfox, and @jerasokcm via #3844.
  • [Documents] Index CSV and TXT file contents. Props @felipeelia via #3885.
  • [Documents] Only set documents-related parameters if no post type was set or if the list already contains attachments. Props @felipeelia via #3889.
  • Automatically open the error log when a sync completes with errors. Props @JakePT and @felipeelia via #3895.
  • Aggregations created with the 'aggs' WP_Query parameter, are now retrievable using $query->query_vars['ep_aggregations']. Props @felipeelia via #3847.
  • Major refactor of the Term::format_args() method and conditionally set search fields for term queries in REST API requests. Props @felipeelia and @mgurtzweiler via #3869.
  • Replaced lee-dohm/no-response with actions/stale to help with closing no-response/stale issues. Props @jeffpaul via #3870.
  • Bumped actions/upload-artifact from v3 to v4. Props @iamdharmesh via #3897.
  • Required node version. Props @oscarssanchez via #3896.

Fixed

Security

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

ElasticPress - Version 5.0.2

Published by felipeelia 9 months ago

Changed

  • [Terms] Counts are now calculated with wp_count_terms() in query_db. Props @rebeccahum via #3791.
  • Composer and npm files are now part of the final package. Props @felipeelia via #3810.

Fixed

  • [WooCommerce] Not use a hard-coded list of order post types. Props @felipeelia via #3807.
  • [Autosuggest] Stop calling the get-autosuggest-allowed endpoint to build the REST API schema. Props @felipeelia via #3809.

Security

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

ElasticPress - Version 5.0.1

Published by felipeelia 10 months ago

Added

  • Failed queries in the Index Health page will now be outputted with their error messages. Props @felipeelia and @pvnanini via #3776.

Fixed

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

ElasticPress - Version 5.0.0

Published by felipeelia 12 months ago

ElasticPress 5.0.0 contains some important changes. Make sure to read these highlights before upgrading:

  • This version does not require a full reindex but it is recommended, especially for websites using synonyms containing spaces. See #3610.
  • Meta keys are not indexed by default anymore. The new Weighting Dashboard allows admin users to mark meta fields as indexables. The new ep_prepare_meta_allowed_keys filter allows to add meta keys programmatically. See #3068.
  • Features now have their fields declared in JSON. Custom features may need to implement the set_settings_schema() method to work. See #3655.
  • The Users feature was moved to the ElasticPress Labs plugin and is no longer available in this plugin. If you use this feature, make sure to install and configure EP Labs before upgrading. See #3670.
  • The Terms and Comments features are now hidden by default for sites that do not have them active yet. Check our blog post for more info. See #3691.
  • New minimum versions (see #3668) are:
    Min Max
    Elasticsearch 5.2 Unset
    WordPress 6.0+ latest
    PHP 7.4+ latest

Added

Changed

  • Abstracted Sync page logic into a provider pattern. Props @JakePT via #3630.
  • Moved syncing from an admin-ajax.php callback to a custom REST API endpoint with support for additional arguments. Props @JakePT via #3643.
  • Store previous syncs info, changed option name from ep_last_index to ep_sync_history. Props @felipeelia and @JakePT via #3647.
  • Features settings declared as JSON. Props @felipeelia and @JakePT via #3655.
  • Tweaked layout and notifications style on the Status Report screen for consistency with the updated Sync page. Props @JakePT via #3662.
  • Moved REST API endpoint definitions to controller classes. Props @JakePT via #3650.
  • SyncManager array queues are now indexed by the blog ID. Props @sathyapulse and @felipeelia via #3689.
  • Comments and Terms are now hidden by default. Props @felipeelia via #3691.
  • WooCommerce-related hooks are now removed when switching to a site that does not have WC active. Props @felipeelia and @MARQAS via #3688.
  • Run e2e tests against the minimum supported WordPress version. Props @felipeelia via #3540.
  • Several tweaks in the Features settings API. Props @JakePT via #3708 and #3709.
  • EP Settings are now reverted if it is not possible to connect to the new ES Server. Props @felipeelia, @burhandodhy, and @scottbuscemi via #3684.
  • Node packages updated. Props @felipeelia via #3706.
  • Updated the labels of feature settings and options for consistency and clarity. Props @JakePT via #3721.
  • Depending on the requirements, some feature settings are now saved to be applied after a full sync. Props @felipeelia and @JakePT via #3720.
  • Minimum requirements. Props @felipeelia and @brandwaffle via #3668.
  • Old features will have their settings displayed based on their default setting values. Props @felipeelia and @JakePT via #3728.
  • Radio and checkbox settings were changed from booleans to strings. Props @felipeelia and @JakePT via #3730.
  • The troubleshooting article link was updated. Props @felipeelia and @anjulahettige via #3748.

Deprecated

  • The IndexHelper::get_last_index method was replaced by IndexHelper::get_last_sync. See #3647.
  • The FailedQueries::maybe_suggest_solution_for_es method was replaced by ElasticsearchErrorInterpreter::maybe_suggest_solution_for_es. See #3661.
  • Weighting::render_settings_section, Weighting::handle_save, Weighting::redirect, and Weighting::save_weighting_configuration were deprecated in favor of React components. See #3068.

Removed

  • Users-related files from the main plugin. Props @felipeelia via #3670.
  • Removed mapping files related to older versions of Elasticsearch. Props @MARQAS via #3704.

Fixed

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

ElasticPress - Version 4.7.2

Published by felipeelia about 1 year ago

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

Removed

Fixed

Security

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

ElasticPress - Version 4.7.1

Published by felipeelia about 1 year ago

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

  • Synonyms and weighting settings added to the status report. Props @felipeelia via #3609.

Changed

Fixed

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

ElasticPress - Version 4.7.0

Published by felipeelia about 1 year ago

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

Deprecated

  • Autosuggest::delete_cached_query() was deprecated without a replacement. See #3566.
  • EP_Uninstaller::delete_related_posts_transients() and EP_Uninstaller::delete_total_fields_limit_transients() was merged into EP_Uninstaller::delete_transients_by_name. See #3548.
  • The ep_woocommerce_default_supported_post_types filter was split into ep_woocommerce_orders_supported_post_types and ep_woocommerce_products_supported_post_types. See #3502.
  • The ep_woocommerce_supported_taxonomies filter is now ep_woocommerce_products_supported_taxonomies. See #3502.
  • All old WooCommerce\Orders methods were migrated to the new WooCommerce\OrdersAutosuggest class. See #3502.
  • The Elasticsearch::clear_total_fields_limit_cache() method was replaced by Elasticsearch::clear_index_settings_cache(). See #3552.
  • Several methods that were previously part of the WooCommerce\WooCommerce class were moved to the new WooCommerce\Product class. See #3502.
  • Several methods that were specific to Facet types were moved to the new Block and Renderer abstract classes. See #3499.

Fixed

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

ElasticPress - Version 4.6.1

Published by felipeelia over 1 year ago

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

ElasticPress - Version 4.6.0

Published by felipeelia over 1 year ago

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

ElasticPress - Version 4.5.2

Published by felipeelia over 1 year ago

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

ElasticPress - Version 4.5.1

Published by felipeelia over 1 year ago

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

ElasticPress - Version 4.5.0

Published by felipeelia over 1 year ago

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

Security

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

ElasticPress - Version 4.4.1

Published by felipeelia almost 2 years ago

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

ElasticPress - Version 4.4.0

Published by felipeelia almost 2 years ago

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

Fixed

  • Clicking on the Facet Term redirect to Homepage. Props @burhandodhy via #3032.
  • Custom results are not highlighted. Props @burhandodhy via #3010.
  • Error when passing an array of post types to WP_Comment_Query. Props @felipeelia, @JakePT, and @MARQAS via #3058.
  • Deprecated filters for search algorithms do not overwrite values set with the newer filters. Props @felipeelia and @marc-tt via #3037.
  • No posts returned when an invalid value was passed to the tax_query parameter. Props @burhandodhy via #3030.
  • Incorrect excerpt when get_the_excerpt is called outside the Loop and Excerpt highlighting option is enabled. Props @burhandodhy via #3114.
  • Facet returns no result for a term having accent characters. Props @burhandodhy and @felipeelia via #3031.
  • An issue where some characters in taxonomy terms would appear encoded when displayed in Instant Results. Props @JakePT via #3113.
  • An issue that caused Autosuggest filter functions to no longer work. Props @JakePT via #3110.
  • An issue that prevented clicking Autosuggest suggestions if they had been customized with additional markup. Props @JakePT via #3110.
  • WooCommerce custom product sort order. Props @felipeelia and @MARQAS via #2965.
  • Network alias creation failed warning when one of the sites is deactivated. Props @burhandodhy via #3139.
  • JS Error on widget screen. Props @burhandodhy via #3143.
  • PHP Warning when a post has no comments. Props @felipeelia and @JiveDig via #3127.
  • put-mapping --network-wide throws error when plugin is not activated on network. Props @burhandodhy via #3041.
  • Internationalization of strings in JavaScript files. Props @felipeelia via #3079.
  • Documentation of the ep_woocommerce_admin_products_list_search_fields filter. Props @felipeelia via #3124.
  • Warning if _source is not returned in query hit. Props @pschoffer via #2992.
  • Undefined variable $update on synonyms page. Props @burhandodhy via #3102.
  • PHP 8 deprecation warning related to uasort() usage. Props @burhandodhy via #3091.
  • Cypress intermittent tests failures. Props @burhandodhy and @felipeelia via #3053, #3147, and #3158.
  • Fix PHP Unit Tests for PHP 8. Props @burhandodhy via #3073.

Security

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

ElasticPress - Version 4.3.1

Published by felipeelia about 2 years ago

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

ElasticPress - Version 4.3.0

Published by felipeelia about 2 years ago

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

ElasticPress - Version 4.2.2

Published by felipeelia over 2 years ago

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